unresolved externals in libeggcharbase.lib ?

Hi I get some missing externals when building Panda3D with optimized options

makepanda\makepanda --everything --optimize 4 --installer

Seems related to pvector to VLVecBase3f ??

Output Window      Performing Makefile project actions
Windows 7 SDK detected. Enabling special features (multi-touch).
WARNING: Could not locate thirdparty package awesomium, excluding from build
Generating library cache...
Generating dependencies...
[ 70%] Linking executable built/bin/egg-optchar.exe
libeggcharbase.lib(eggcharbase_composite1.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall pvector::pvector(class TypeHandle)" (__imp_??0?$pvector@VLVecBase3f@@@@QAE@VTypeHandle@@@Z)
libeggcharbase.lib(eggcharbase_composite1.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::vector >::push_back(class LVecBase3f const &)" (__imp_?push_back@?$vector@VLVecBase3f@@V?$pallocator_array@VLVecBase3f@@@@@std@@QAEXABVLVecBase3f@@@Z)
libeggcharbase.lib(eggcharbase_composite1.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall pvector::~pvector(void)" (__imp_??1?$pvector@VLVecBase3f@@@@QAE@XZ)
built/bin/egg-optchar.exe : fatal error LNK1120: 3 unresolved externals
Storing dependency cache.
Elapsed Time: 5 sec
Build terminated.

Digged a little bit more into the issue:

since the compile is ok with makepanda\makepanda --everything –optimize 3 –installer

the issue may come from the /GL global optimization flag in VS2008, that strips some symbols??
(Of course anything marked dllexport shouldn’t be eliminated by the linker, but who knows :unamused: )