-------------------------------------------------- From: "Frederic Bouvier" <[email protected]> Sent: Saturday, February 12, 2011 3:58 PM To: "FlightGear developers discussions" <[email protected]> Subject: Re: [Flightgear-devel] Cmake + VC2010 link errors
> Hi Allan, > > this issue has been discussed on the osg ML and is likely a bug in VS2010. > These warnings are the best we can do. By default, these are errors, but > the cmake configure script adds "/FORCE:MULTIPLE" to allow multiply > defined symbols in an executable. > > Regards, > -Fred > Thanks for the replies. Fred I have just looked at the compiler preferences. The linker does have "/FORCE:MULTIPLE" defined. Here is the command line:- /OUT:"C:\FlightGear\flightgear\src\Main\Release\fgfs.exe" /VERSION:"0.0" /INCREMENTAL:NO /NOLOGO /FORCE:MULTIPLE "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "comdlg32.lib" "advapi32.lib" "..\Airports\Release\fgAirports.lib" "..\Aircraft\Release\fgAircraft.lib" "..\ATC\Release\fgATC.lib" "..\ATCDCL\Release\fgATCDCL.lib" "..\Autopilot\Release\fgAutopilot.lib" "..\Cockpit\Release\fgCockpit.lib" "..\Environment\Release\fgEnvironment.lib" "..\GUI\Release\fgGUI.lib" "..\Input\Release\fgInput.lib" "..\Instrumentation\Release\fgInstruments.lib" "..\Model\Release\fgModel.lib" "..\MultiPlayer\Release\fgMultiPlayer.lib" "..\AIModel\Release\fgAIModel.lib" "..\Navaids\Release\fgNavaids.lib" "..\Network\Release\fgNetwork.lib" "..\Scenery\Release\fgScenery.lib" "..\Scripting\Release\fgScripting.lib" "..\Sound\Release\fgSound.lib" "..\Systems\Release\fgSystems.lib" "..\Time\Release\fgTime.lib" "..\Traffic\Release\fgTraffic.lib" "..\FDM\Release\fgFDM.lib" "..\FDM\YASim\Release\fgYASim.lib" "..\FDM\JSBSim\Release\fgJSBSim.lib" "C:\FlightGear\simgear\lib\sgephem.lib" "C:\FlightGear\simgear\lib\sgenvironment.lib" "C:\FlightGear\simgear\lib\sgnasal.lib" "C:\FlightGear\simgear\lib\sgsky.lib" "C:\FlightGear\simgear\lib\sgmaterial.lib" "C:\FlightGear\simgear\lib\sgtgdb.lib" "C:\FlightGear\simgear\lib\sgmodel.lib" "C:\FlightGear\simgear\lib\sgscreen.lib" "C:\FlightGear\simgear\lib\sgbucket.lib" "C:\FlightGear\simgear\lib\sgbvh.lib" "C:\FlightGear\simgear\lib\sgutil.lib" "C:\FlightGear\simgear\lib\sgroute.lib" "C:\FlightGear\simgear\lib\sgtiming.lib" "C:\FlightGear\simgear\lib\sgio.lib" "C:\FlightGear\simgear\lib\sgserial.lib" "C:\FlightGear\simgear\lib\sgsound.lib" "C:\FlightGear\simgear\lib\sgstructure.lib" "C:\FlightGear\simgear\lib\sgprops.lib" I am now trying a build using a the 3rd party and OSG libraries from ftp://ftp.ihg.uni-duisburg.de/FlightGear/Win32/MSVC/,and a Flightgear.sln derived from the projects/VC90 directory to see if I can pin down the problem. Alan ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

