Page 2 of 2 FirstFirst 1 2
Results 16 to 19 of 19

Thread: IceE DLL on PDA -> Signature necessary?

  1. #16
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,140
    Hi Susanne,

    After looking at this a bit closer, we believe this linker error comes from a missing macro definition when you build your code and link with the static library version of Ice-E.

    You must define the ICEE_STATIC_LIBS macro in the preprocessor definitions. In Visual Studio, you can add this macro by opening the project properties dialog and select "Configuration Properties -> C/C++ -> Preprocessor", in the "Preprocessor Definitions" field, add "ICEE_STATIC_LIBS".

    With this macro, the Ice-E headers won't use __declspec(dllimport) for Ice-E symbols and this should fix your linker errors.

    Documentation for this macro seems to unfortunately be missing, we'll fix this for the next release!

    Cheers,
    Benoit.

  2. #17
    susannesch is offline Registered User
    Name: Susanne Schilling
    Organization: Hydrometer
    Project: accessing an OSGI Framework from C++
    Join Date
    May 2009
    Posts
    33
    Defining the Macro reduced the errors a little bit, thanks. I don't want to make my DLL a static lib, so there are 25 of the 28 Errors mentioned below left. It is strange that these Errors all have to do with sockets and networking.

    Bibliothek "Windows Mobile 6 Professional SDK (ARMV4I)\Release/DLLJAVAPORTMOBILELIB.lib" und Objekt "Windows Mobile 6 Professional SDK (ARMV4I)\Release/DLLJAVAPORTMOBILELIB.exp" werden erstellt.
    iceec_static.lib(Instance.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "WSACleanup".
    iceec_static.lib(Instance.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "WSAGetLastError".
    iceec_static.lib(Instance.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "WSAStartup".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "accept".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "getnameinfo".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "listen".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "getsockopt".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "closesocket".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "WSASetLastError".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "freeaddrinfo".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "socket".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "bind".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "setsockopt".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "getsockname".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "ntohs".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "htons".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "getaddrinfo".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "htonl".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "connect".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "WSAIoctl".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "ioctlsocket".
    iceec_static.lib(Network.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "getpeername".
    iceec_static.lib(ThreadPool.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "send".
    iceec_static.lib(ThreadPool.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "recv".
    iceec_static.lib(ThreadPool.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "select".
    Windows Mobile 6 Professional SDK (ARMV4I)\Release/DLLJAVAPORTMOBILELIB.dll : fatal error LNK1120: 25 nicht aufgelöste externe Verweise.

  3. #18
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,140
    Hi Susanne,

    To get the right compiler settings, I recommend taking a look at our demos. You can open the demo_CE visual studio solution which is is included with your Ice-E distribution in the cppe\demo directory and compare the project settings with yours. Our demo projects have four different configurations: Debug, Release, DebugStatic, ReleaseStatic, make sure to pick the right one.

    Here, I suspect you need to add some more libraries (most likely "ws2.lib") into the "Additional Dependencies" field in "Configuration Properties->Linker->Options" of your project properties.

    Cheers,
    Benoit.

  4. #19
    susannesch is offline Registered User
    Name: Susanne Schilling
    Organization: Hydrometer
    Project: accessing an OSGI Framework from C++
    Join Date
    May 2009
    Posts
    33
    That's it, the ws2.lib! Thanks!

Page 2 of 2 FirstFirst 1 2

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Is it possible to map coments from slice >> C#?
    By Gravitas in forum Help Center
    Replies: 2
    Last Post: 03-04-2011, 11:04 AM
  2. Replies: 1
    Last Post: 05-18-2009, 05:17 PM
  3. Using IcePy as client/server (with signature)
    By eritrea in forum Help Center
    Replies: 3
    Last Post: 03-31-2006, 09:51 PM
  4. Replies: 1
    Last Post: 04-07-2005, 01:06 PM
  5. ServantLocator::deactivate signature
    By andreynech in forum Bug Reports
    Replies: 1
    Last Post: 05-23-2004, 06:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •