Message: Re: Open Inventor won't link on Windows Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: Open Inventor won't link on Windows 

Forum: Visualization
Re: None Open Inventor won't link on Windows (Tom Roberts)
Re: Question Re: Open Inventor won't link on Windows (garnier)
Date: 08 Apr, 2009
From: Tom Roberts <Tom Roberts>

As I said, I have a workaround: put G4Win32.cc into my src directory, which my GNUmakefile forces to be linked from .o, not from any library.

Removing G4Win32.cc, doing make clean, then make, it compiles all my application files and links:

 Using granular libraries ...
 Linking g4beamline ...
 cl : Command line warning D9024 : unrecognized source file type 'g:/g4bl/tmp/WIN32-VC/g4beamline/BLCMDabsorber.o', object file assumed

[... lots more of those, one for each .o file. I am living with these warnings.]

 LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library

[This has been with me from the start. Adding that switch has no effect and the warning still comes. The program runs fine.]

 libG4OpenInventor.a(G4OpenInventorWin.o) : error LNK2019: unresolved external symbol "public: static class G4Win32 * __cdecl G4Win32::getInstance(void)" (?getInstance@G4Win32@@SAPAV1@XZ) referenced in function "private: virtual void __thiscall G4OpenInventorWin::Initialize(void)" (?Initialize@G4OpenInventorWin@@EAEXXZ)
 g:/g4bl/bin/WIN32-VC/g4beamline.exe : warning LNK4088: image being generated due to /FORCE option; image may not run
 ... Done!

Somehow G4Win32::getInstance() is not pulled in from the granular libraries. Note that I built the Win32 UI in Geant4, but my program does not use it. I suspect you use it and get no error, but I don't use it and do get an error. My program and its users rarely use the Geant4 commands directly.

 Add Message Add Message
to: "Re: Open Inventor won't link on Windows"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]