Olaf Flebbe wrote:
Please check out the dependent builds. All have to be compiled with
/MT (Configuration C++/Code Generation) . (What library wet wrong?)
I am not sure if this reply was intended for me, but I will go on
assuming that it was :)
All dependent builds complied without errors, zlib, freeglut, plib, and
simgear. Flightgear also completed its first part of compiling, but when
it came to linking it reported the errors I reported earlier. For the
sake of completeness, I included the whole build log at the bottom of
this mail. I have tried compiling everything with debug, and everything
with release configurations. It appears that there are multiple
definitions of the standard library functions, but I would not known
where these libraries would be. Just for the hell of it I tried with
/NODEFAULTLIB, but that only made things worse :)
I don't know this makes anything clearer, but I hope you will be able to
provide me with some constructive suggestions :)
Build Log
Build started: Project: FlightGear, Configuration: Release|Win32
Command Lines
Creating temporary file
"c:\fgmsvc\fgsrc\projects\VC8\Release\RSP00009045126096.rsp" with contents
[
/OUT:"Release\FlightGear.exe" /INCREMENTAL /LIBPATH:"FGRelease" /LIBPATH:"../../../plib/" /LIBPATH:"../../../Simgear/Projects/VC8/Release"
/LIBPATH:"../../../freeglut-2.4.0/ReleaseStatic" /LIBPATH:"../../../Pre-Built.2/lib"
/LIBPATH:"../../../zlib-1.2.3/projects/visualc6/Win32_LIB_Release" /LIBPATH:"../../../al/lib" /MANIFEST
/MANIFESTFILE:"Release\FlightGear.exe.intermediate.manifest" /DEBUG /PDB:"c:\fgmsvc\fgsrc\projects\vc8\release\FlightGear.pdb" /SUBSYSTEM:WINDOWS /OPT:REF
/OPT:ICF /MACHINE:X86 FlightgearLib.lib Simgear.lib fnt.lib js.lib net.lib psl.lib puAux.lib pui.lib pw.lib sg.lib sl.lib ssg.lib ssgAux.lib ul.lib pthreadvc2.lib Alut.lib
openal32.lib zlib.lib wsock32.lib advapi32.lib comdlg32.lib shell32.lib user32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
".\release\bootstrap.obj"
".\release\fg_commands.obj"
".\release\fg_init.obj"
".\release\fg_io.obj"
".\release\fg_os.obj"
".\release\fg_props.obj"
".\release\globals.obj"
".\release\logger.obj"
".\release\main.obj"
".\release\options.obj"
".\release\renderer.obj"
".\release\splash.obj"
".\release\util.obj"
".\release\viewer.obj"
".\release\viewmgr.obj"
".\Release\FlightGear.exe.embed.manifest.res"
]
Creating command line "link.exe
@c:\fgmsvc\fgsrc\projects\VC8\Release\RSP00009045126096.rsp /NOLOGO
/ERRORREPORT:PROMPT"
Output Window
Linking...
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _fwrite already defined in
LIBCMT.lib(fwrite.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _ferror already defined in
LIBCMT.lib(feoferr.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _fread already defined in
LIBCMT.lib(fread.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: __errno already defined in
LIBCMT.lib(dosmap.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _fclose already defined in
LIBCMT.lib(fclose.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _free already defined in
LIBCMT.lib(free.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: __vsnprintf already defined in
LIBCMT.lib(vsnprint.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _fflush already defined in
LIBCMT.lib(fflush.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _fseek already defined in
LIBCMT.lib(fseek.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _fputc already defined in
LIBCMT.lib(fputc.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _malloc already defined in
LIBCMT.lib(malloc.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _strerror already defined in
LIBCMT.lib(strerror.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _ftell already defined in
LIBCMT.lib(ftell.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _fprintf already defined in
LIBCMT.lib(fprintf.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _fopen already defined in
LIBCMT.lib(fopen.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _sprintf already defined in
LIBCMT.lib(sprintf.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class
type_info const &)" (??0type_info@@[EMAIL PROTECTED]@@Z) already defined in
LIBCMT.lib(typinfo.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall
type_info::operator=(class type_info const &)" (??4type_info@@[EMAIL PROTECTED]@@Z)
already defined in LIBCMT.lib(typinfo.obj)
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs;
use /NODEFAULTLIB:library
Release\FlightGear.exe : fatal error LNK1169: one or more multiply defined
symbols found
Results
Build log was saved at
"file://c:\fgmsvc\fgsrc\projects\VC8\Release\BuildLog.htm"
FlightGear - 19 error(s), 2 warning(s)
--
Frank Olaf Sem-Jacobsen
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel