Hello all
Im using stlport 5.21 and link it with visibriker client libs
When I compile it with stlport im getting this error:
in this method : __cdecl CORBA::ORB_init
1>Client.cpp
1>Linking...
1>Client.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class stlp_std::basic_ostream > & __cdecl operator<<(class stlp_std::basic_ostream > &,class CORBA_Exception const &)" (_imp??6@YAAAV?$basic_ostream@DV?$char_traits@D@stlp_std@@@stlp_std@@AAV01@ABVCORBA_Exception@@@Z)
1>Client.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class CORBA_ORB * __cdecl CORBA::ORB_init(int &,char * const *,char const *,class stlp_std::basic_ostream > &,class stlp_std::basic_ostream > &,class stlp_std::basic_ostream > &)" (_imp?ORB_init@CORBA@@YAPAVCORBA_ORB@@AAHPBQADPBDAAV?$basic_ostream@DV?$char_traits@D@stlp_std@@@stlp_std@@33@Z)
1>Bank_c.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class stlp_std::basic_ostream > & __cdecl operator<<(class stlp_std::basic_ostream > &,class CORBA_Object * const)" (_imp??6@YAAAV?$basic_ostream@DV?$char_traits@D@stlp_std@@@stlp_std@@AAV01@QAVCORBA_Object@@@Z)
1>Bank_c.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall VISistream::VISistream(class stlp_std::basic_istream > &)" (_imp??0VISistream@@QAE@AAV?$basic_istream@DV?$char_traits@D@stlp_std@@@stlp_std@@@Z)
1>F:\Leap NextGen\VS2008\Dev Env\Release\bank_naming.exe : fatal error LNK1120: 4 unresolved externals
1>Build log was saved at "file://f:\Leap NextGen\VS2008\Dev Env\bank_naming\Release\BuildLog.htm"
1>bank_naming - 5 error(s), 6 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Here is the Init signature :
Some macros …
#define USE_STD_NS using namespace std;
#define Ostream std::ostream
#define _VISEXPORT __declspec(dllimport)
_VISEXPORT ORB_ptr ORB_init(int& argc,
char *const *argv,
const char *orb_id= (char *)NULL,
Ostream& outstr=Cout,
Ostream& logstr=Clog,
Ostream& errstr=Cerr);