Page 3 of 3 FirstFirst 1 2 3
Results 31 to 31 of 31

Thread: Compile problems in VC7.1

  1. #31
    DeepDiver's Avatar
    DeepDiver is offline Registered User
    Name: Thomas Mueller
    Organization: Freelance Software Developer
    Project: Project depend on Customers
    Join Date
    Nov 2004
    Location
    Munich, Bavaria, Germany
    Posts
    105
    Quote Originally Posted by pokemoen
    Thanks alot deepdiver! Why '#include "client.h" ' twice though? Afaics the second one can be commented out..

    Some link errors were due to missing windows default includes (and quickly fixed), but others were due to missing slice2cpp generated .cpp and .h files :/
    So I added them but now I get 10 errors about "definition of dllimport static data member not allowed" and loads of "inconsistent dll linkage" warnings.

    e.g.:


    fyi, the libs I link to are: iced.lib iceutild.lib mysqlclient.lib libmysql.lib wsock32.lib msvcprtd.lib msvcrtd.lib libcpmtd.lib libcmtd.lib
    Of which the first two I've also compiled myself (2.1.1) but the errors stay the same when I use those..

    Any help would be greatly appreciated 'cause those errors make little sense to me even after google, msdn and ice docs skim...

    Thanks,
    Alex
    hi alex,

    1.) ignore the second #include "client.h" - it has no meaning - you can also remove this line.

    2.) you should not link mysqlclient.lib[static linkage] but libmysql.lib[dll linkage]

    3.) turn the c/c++ option 'ignore standard libs' off and remove these libs: msvcprtd.lib msvcrtd.lib libcpmtd.lib libcmtd.lib

    i attached the project. i only worked on the client.

    cu tom
    Attached Files Attached Files

Page 3 of 3 FirstFirst 1 2 3

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problems to compile Ice-3.3.0
    By peter in forum Help Center
    Replies: 3
    Last Post: 01-21-2009, 10:51 AM
  2. No problem in Vc7.0 client and Vc7.0 Server
    By zhoubin in forum Help Center
    Replies: 0
    Last Post: 11-24-2006, 02:27 AM
  3. problems when compile Ice2.0.0 in redhat 9
    By libaoli in forum Help Center
    Replies: 8
    Last Post: 01-09-2005, 07:40 AM
  4. VC7.1 compile ICE1.5.1 error
    By code in forum Help Center
    Replies: 1
    Last Post: 09-10-2004, 06:59 AM
  5. Compile error, slice2cpp, VC7
    By Kaos in forum Help Center
    Replies: 2
    Last Post: 05-06-2004, 11:22 AM

Posting Permissions

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