
Yigal,
Do you have a Visual Studio Project file which I could use? I found another guidance at http://www.bertnase.de/libsmi/. With the described changes it was possible for me to build the smi.lib but at least I got some errors for the .exe files, but I only need the smi.lib.
Now, when I integrate smi.lib to my project, I get the following linker errors: LIBC.lib(crt0dat.obj) : error LNK2005: ___crtExitProcess already defined in libcmtd.lib(crt0dat.obj)LIBC.lib(crt0dat.obj) : error LNK2005: __cinit bereits already defined in libcmtd.lib(crt0dat.obj) ....
When I make a new project I only get the following warning: LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library
In the doku I can read that the two errors are most likely when multi-threaded and single-threaded libraries are linked.
How can I fix this?
Thank's Mathias
-----Original Message----- From: Yigal Hochberg [mailto:hochberg@dmhsoftware.com] Sent: Mittwoch, 06. Juli 2005 19:22 To: Spoerr, Mathias; libsmi@ibr.cs.tu-bs.de Subject: Re: [libsmi] libsmi and windows
Mathias,
I recently sent a few diffs for win32 build. I think they are unrelated to your problem. It looks like your INCLUDE or a similar env var is not set. msdev should know where to find its <stdio.h>
Regards,
- Yigal
---- Spoerr, Mathias Mathias.Spoerr@getronics.com wrote:
Hello,
I tried to build libsmi 0.4.3 with MS Visual Studio 2003 but I got a fatal error C1083 that in "win.c, line 15" "stdio.h" cannot be found. Does anyone know how what's wrong?
Thank's Mathias
-- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to libsmi-request@ibr.cs.tu-bs.de !! or look at

Mathias,
There is no msdev project file. You can build directly by using nmake and cl (ms compiler).
Steps:
1. configure your CL so you can use it from the command line. 2. cd win 3. nmake
Step 3 will build the libs and exe files.
Regards,
Yigal Hochberg DMH Software.
---- Spoerr, Mathias Mathias.Spoerr@getronics.com wrote:
Yigal,
Do you have a Visual Studio Project file which I could use? I found another guidance at http://www.bertnase.de/libsmi/. With the described changes it was possible for me to build the smi.lib but at least I got some errors for the .exe files, but I only need the smi.lib.
Now, when I integrate smi.lib to my project, I get the following linker errors: LIBC.lib(crt0dat.obj) : error LNK2005: ___crtExitProcess already defined in libcmtd.lib(crt0dat.obj)LIBC.lib(crt0dat.obj) : error LNK2005: __cinit bereits already defined in libcmtd.lib(crt0dat.obj) ....
When I make a new project I only get the following warning: LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library
In the doku I can read that the two errors are most likely when multi-threaded and single-threaded libraries are linked.
How can I fix this?
Thank's Mathias
-----Original Message----- From: Yigal Hochberg [mailto:hochberg@dmhsoftware.com] Sent: Mittwoch, 06. Juli 2005 19:22 To: Spoerr, Mathias; libsmi@ibr.cs.tu-bs.de Subject: Re: [libsmi] libsmi and windows
Mathias,
I recently sent a few diffs for win32 build. I think they are unrelated to your problem. It looks like your INCLUDE or a similar env var is not set. msdev should know where to find its <stdio.h>
Regards,
- Yigal
---- Spoerr, Mathias Mathias.Spoerr@getronics.com wrote:
Hello,
I tried to build libsmi 0.4.3 with MS Visual Studio 2003 but I got a fatal error C1083 that in "win.c, line 15" "stdio.h" cannot be found. Does anyone know how what's wrong?
Thank's Mathias
-- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to libsmi-request@ibr.cs.tu-bs.de !! or look at
https://www.ibr.cs.tu-bs.de/mailman/listinfo/libsmi.
-- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to libsmi-request@ibr.cs.tu-bs.de !! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/libsmi.

Yigal Hochberg wrote:
Mathias,
There is no msdev project file. You can build directly by using nmake and cl (ms compiler).
Steps:
- configure your CL so you can use it from the command line.
- cd win
- nmake
Step 3 will build the libs and exe files.
I tried following the directions in win/README.win for building from CVS (should be SVN) using Visual Studio .NET Professional (i.e. VC7)
So far I've: 1. had to do a complete build with cygwin (100% successful) to get other headers not listed as needing to be made, 2. found I had the patch tools/rea.* because the variable DEBUG causes a name clash with the DEBUG macro,
Now tools/dump-svg.c generates lots of errors like 781 'fabs' undefined assuming extern returning int 2667 expecting const expression followed by lots nore 'expecting const expression', 'cannot allocate an array of constant size 0' and 'unknown size' errors
Methinks VC7 does not like static functions with variable size arrays.
Regards,
Yigal Hochberg DMH Software.
---- Spoerr, Mathias Mathias.Spoerr@getronics.com wrote:
Yigal,
Do you have a Visual Studio Project file which I could use? I found another guidance at http://www.bertnase.de/libsmi/. With the described changes it was possible for me to build the smi.lib but at least I got some errors for the .exe files, but I only need the smi.lib.
Now, when I integrate smi.lib to my project, I get the following linker errors: LIBC.lib(crt0dat.obj) : error LNK2005: ___crtExitProcess already defined in libcmtd.lib(crt0dat.obj)LIBC.lib(crt0dat.obj) : error LNK2005: __cinit bereits already defined in libcmtd.lib(crt0dat.obj) ....
When I make a new project I only get the following warning: LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library
In the doku I can read that the two errors are most likely when multi-threaded and single-threaded libraries are linked.
How can I fix this?
Thank's Mathias
-----Original Message----- From: Yigal Hochberg [mailto:hochberg@dmhsoftware.com] Sent: Mittwoch, 06. Juli 2005 19:22 To: Spoerr, Mathias; libsmi@ibr.cs.tu-bs.de Subject: Re: [libsmi] libsmi and windows
Mathias,
I recently sent a few diffs for win32 build. I think they are unrelated to your problem. It looks like your INCLUDE or a similar env var is not set. msdev should know where to find its <stdio.h>
Regards,
- Yigal
---- Spoerr, Mathias Mathias.Spoerr@getronics.com wrote:
Hello,
I tried to build libsmi 0.4.3 with MS Visual Studio 2003 but I got a fatal error C1083 that in "win.c, line 15" "stdio.h" cannot be found. Does anyone know how what's wrong?
Thank's Mathias
-- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to libsmi-request@ibr.cs.tu-bs.de !! or look at
https://www.ibr.cs.tu-bs.de/mailman/listinfo/libsmi.
-- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to libsmi-request@ibr.cs.tu-bs.de !! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/libsmi.
participants (3)
-
Andrew Hood
-
Spoerr, Mathias
-
Yigal Hochberg