RE: Mingw Compiling Error



> Compiler options:
> g++ main.cc -o program `pkg-config gtkmm-2.4 --cflags --libs`
> 
> Compiler error:
> C:/DOCUME~1/Alex/LOCALS~1/Temp/ccgvbaaa.o(.text+0x1aa):main.cc:
> undefined reference to `HelloWorld::HelloWorld()'
> C:/DOCUME~1/Alex/LOCALS~1/Temp/ccgvbaaa.o(.text+0x1d4):main.cc:
> undefined reference to `HelloWorld::~HelloWorld()'
> C:/DOCUME~1/Alex/LOCALS~1/Temp/ccgvbaaa.o(.text+0x233):main.cc:
> undefined reference to `HelloWorld::~HelloWorld()'
> collect2: ld returned 1 exit status
> 

Do you need to compile and link in SimpleWindow.cpp (or a similarly named
file) by any chance?


Gaz



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]