Results 1 to 2 of 2

Thread: Error using Makefile with Eclipse with MinGW

  1. #1
    peter is offline Registered User
    Name: Peter Jaxy
    Organization: Reihnisch Westfälisch technische Hochschule
    Project: Integrative Production Technologie
    Join Date
    Jan 2009
    Posts
    30

    Error using Makefile with Eclipse with MinGW

    I want to work with Eclipse with the C++-Compiler by MinGW.

    I wrote a makefile in Eclipse to compile my programm:
    all:
    g++ -I"Client\headerFiles" \
    -I"C:\Ice-3.3.0-VC90\include" -c \
    Client\resourceFiles\Client.cpp \
    Client\resourceFiles\Printer.cpp

    g++ -L"C:\Ice-3.3.0-VC90\lib" -o adapterTest.exe \
    Client.o Printer.o \
    -l ice -l iceutil -l icegrid
    But the linker gives me some error messages:

    Client.o(.text+0x652):Client.cpp: undefined reference to `IceUtil:perator<<(std:stream&, IceUtil::Exception const&)'
    Client.o(.text+0x8b4):Client.cpp: undefined reference to `IceInternal::FactoryTable::FactoryTable()'
    Client.o(.text+0x971):Client.cpp: undefined reference to `IceGrid::UserAccountNotFoundException::~UserAccou ntNotFoundException()'
    Client.o(.text+0x98c):Client.cpp: undefined reference to `Ice::AdapterNotFoundException::~AdapterNotFoundEx ception()'
    Client.o(.text+0x9a7):Client.cpp: undefined reference to `IceGrid::ParseException::~ParseException()'
    Client.o(.text+0x9dd):Client.cpp: undefined reference to `IceGrid::ApplicationNotExistException::~Applicati onNotExistException()'
    Client.o(.text+0x9f8):Client.cpp: undefined reference to `Glacier2::CannotCreateSessionException::~CannotCr eateSessionException()'
    Client.o(.text+0xa13):Client.cpp: undefined reference to `IceInternal::FactoryTable::~FactoryTable()'
    Client.o(.text$_ZN11IceInternal6HandleIN3Ice12Comm unicatorEEC1EPS2_[IceInternal::Handle<Ice::Communicator>::Handle(Ice ::Communicator*)]+0x2a):Client.cpp: undefined reference to `IceInternal::upCast(Ice::Communicator*)'
    Client.o(.text$_ZN11IceInternal6HandleIN3Ice12Comm unicatorEED1Ev[IceInternal::Handle<Ice::Communicator>::~Handle()]+0x17):Client.cpp: undefined reference to `IceInternal::upCast(Ice::Communicator*)'
    Client.o(.text$_ZN11IceInternal6HandleIN3Ice10Prop ertiesEEC1EPS2_[IceInternal::Handle<Ice::Properties>::Handle(Ice:: Properties*)]+0x2a):Client.cpp: undefined reference to `IceInternal::upCast(Ice::Properties*)'
    etc...

    But I'm sure, that in C:\Ice-3.3.0-VC90\lib are the files "ice.lib" "icegrid.lib" "iceutil.lib"

    What is wrong with my Makefile?

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    You built Ice yourself, or you are using a binary installation? If binary, then that cannot work with MinGW since the libraries are only for specific compilers (ie: Microsoft & Borland).

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Does ice support MinGW?
    By lionel in forum Help Center
    Replies: 27
    Last Post: 05-06-2011, 03:29 AM
  2. Makefile.rules in RHEL5 rpm
    By myrosia in forum Help Center
    Replies: 3
    Last Post: 10-28-2009, 10:20 AM
  3. Replies: 3
    Last Post: 05-28-2009, 11:05 PM
  4. Ice Embedded with mingw?
    By tjorven in forum Comments
    Replies: 6
    Last Post: 12-08-2008, 11:54 AM
  5. Replies: 0
    Last Post: 08-25-2005, 07:34 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
  •