Hi,
I have a problem compiling the Omnet++ examples with debug information in
Visual Studio Express 2005. The "release" compilation works fine even
without using the "m.bat" workaround, see
http://www.omnetpp.org/listarchive/msg07806.php. I've also tried to use the
"m.bat" workaround, but it did only work without generating debug
information, too. So, I think that this workaround might not solved every
problem and that there might be another one. In the appendix I've included
the error messages I've received (quite similar to what other people posted
before me).
I hope that there is already somebody who managed to get the debugger
working!
Regards,
Martin
------ Build started: Project: tokenring, Configuration: Debug Cmdenv Win32
------
Compiling...
token.cpp
gen.cpp
sink.cpp
token_m.cpp
Generating Code...
Compiling manifest to resources...
Linking...
LIBCMT.lib(invarg.obj) : error LNK2005: __initp_misc_invarg already defined
in LIBCMTD.lib(invarg.obj)
LIBCMT.lib(invarg.obj) : error LNK2005: __invoke_watson already defined in
LIBCMTD.lib(invarg.obj)
LIBCMT.lib(invarg.obj) : error LNK2005: __set_invalid_parameter_handler
already defined in LIBCMTD.lib(invarg.obj)
LIBCMT.lib(invarg.obj) : error LNK2005: __get_invalid_parameter_handler
already defined in LIBCMTD.lib(invarg.obj)
LIBCMT.lib(invarg.obj) : error LNK2005: "void __cdecl
_invoke_watson(unsigned short const *,unsigned short const *,unsigned short
const *,unsigned int,unsigned int)" (?_invoke_watson@@YAXPBG00II@Z) already
defined in LIBCMTD.lib(invarg.obj)
LIBCMT.lib(invarg.obj) : error LNK2005: __invalid_parameter already defined
in LIBCMTD.lib(invarg.obj)
LIBCMT.lib(invarg.obj) : error LNK2005: "void __cdecl
_invalid_parameter(unsigned short const *,unsigned short const *,unsigned
short const *,unsigned int,unsigned int)"
(?_invalid_parameter@@YAXPBG00II@Z) already defined in
LIBCMTD.lib(invarg.obj)
LIBCMT.lib(invarg.obj) : error LNK2005: ___pInvalidArgHandler already
defined in LIBCMTD.lib(invarg.obj)
Creating library ../tokenring.lib and object ../tokenring.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other
libs; use /NODEFAULTLIB:library
../tokenring.exe : fatal error LNK1169: one or more multiply defined symbols
found
Build log was saved at "file://c:OMNeT++samplestokenringdebugBuildLog.htm"
tokenring - 9 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
--
[1][site=fn&prod=chetools&kat=rub&tbl=webmail&ppos=14&TransactionID=11702456
91888543&rgtg=256]
References
1. http://adserver.freenet.de/click.ng/site=fn&prod=chetools&kat=rub&tbl=webmail&ppos=14&TransactionID=1170245691888543&rgtg=256
_______________________________________________
OMNeT++ Mailing List
options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
archive: http://www.omnetpp.org/listarchive/index.php