[omniORB] VC++ 6.0 & OmniORB2 - Link problems

Martin Bergek martin.bergek@home.se
Mon, 13 Sep 1999 14:19:53 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0200_01BEFDF3.0C56ADC0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I'm having problem linking a project. I have read the instructions in =
README.win32 on which flags to add to the project setting but I get the =
following errors:


BillingDataDynSK.obj : error LNK2001: unresolved external symbol =
"public: static class CORBA::TypeCode * __cdecl =
CORBA::TypeCode::PR_interface_tc(char const *,char const *)" =
(?PR_interface_tc@TypeCode@CORBA@@SAPAV12@PBD0@Z)

BillingDataDynSK.obj : error LNK2001: unresolved external symbol =
"public: void __thiscall CORBA::Any::PR_packFrom(class CORBA::TypeCode =
*,void *)" (?PR_packFrom@Any@CORBA@@QAEXPAVTypeCode@2@PAX@Z)

BillingDataDynSK.obj : error LNK2001: unresolved external symbol =
"public: bool __thiscall CORBA::Any::PR_unpackTo(class CORBA::TypeCode =
*,void *)const " (?PR_unpackTo@Any@CORBA@@QBE_NPAVTypeCode@2@PAX@Z)

Release/BillingClient.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.


My environment:
---
NT 4.0 sp5
MS Visual C++ 6.0
OmniORB2 2.7.1


I works wonderful when compiling from the command prompt, but within the =
visual environment it refuses to link. I've tried to use the same =
settings as in the makefile.

My IDL file looks like this:

interface Billing {
    void addData ();
};

Really extremely simple. I'm just trying to get a workable environment. =
I used to have the interface above within some module statements but =
tried removing them to see if that's where the problem was.

Any help would be greatly appreciated.

Martin Bergek
martin.bergek@home.se


------=_NextPart_000_0200_01BEFDF3.0C56ADC0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I'm having problem linking a project. I =
have read=20
the instructions in README.win32 on which flags to add to the project =
setting=20
but I get the following errors:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>BillingDataDynSK.obj : error LNK2001: =
unresolved=20
external symbol "public: static class CORBA::TypeCode * __cdecl=20
CORBA::TypeCode::PR_interface_tc(char const *,char const *)"=20
(?PR_interface_tc@TypeCode@CORBA@@SAPAV12@PBD0@Z)<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>BillingDataDynSK.obj : error LNK2001: =
unresolved=20
external symbol "public: void __thiscall CORBA::Any::PR_packFrom(class=20
CORBA::TypeCode *,void *)"=20
(?PR_packFrom@Any@CORBA@@QAEXPAVTypeCode@2@PAX@Z)<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>BillingDataDynSK.obj : error LNK2001: =
unresolved=20
external symbol "public: bool __thiscall CORBA::Any::PR_unpackTo(class=20
CORBA::TypeCode *,void *)const "=20
(?PR_unpackTo@Any@CORBA@@QBE_NPAVTypeCode@2@PAX@Z)<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Release/BillingClient.exe : fatal error =
LNK1120: 3=20
unresolved externals<BR>Error executing link.exe.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My environment:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>---</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>NT 4.0 sp5</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>MS Visual C++ 6.0</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>OmniORB2 2.7.1</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I works wonderful when compiling from =
the command=20
prompt, but within the visual environment it refuses to link. I've tried =
to use=20
the same settings as in the makefile.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My IDL file looks like =
this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>interface Billing =
{<BR>&nbsp;&nbsp;&nbsp; void=20
addData ();<BR>};</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Really extremely simple. I'm just =
trying to get a=20
workable environment. I used to have the interface above within some =
module=20
statements but tried removing them to see if that's where the problem=20
was.</FONT><FONT face=3DArial size=3D2><BR></FONT><FONT face=3DArial=20
size=3D2></DIV></FONT>
<DIV><FONT face=3DArial size=3D2>Any help would be greatly =
appreciated.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Martin Bergek</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:martin.bergek@home.se">martin.bergek@home.se</A></FONT></D=
IV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT></BODY></HTML>

------=_NextPart_000_0200_01BEFDF3.0C56ADC0--