Linker errors with Dev-C++

From: JimBo (jimbo_at_yahoo.com)
Date: 09/22/04


Date: Wed, 22 Sep 2004 12:36:19 GMT

I am trying to compile a simple tutorial program for the Fox Toolkit gui
and I am getting all kinds of linker errors. Can someone tell me how to
get around it. I am using Bloodshed DEV-C++

How can I fix this undefined reference errors ??

TIA

Compiler: Default compiler
Building Makefile: "D:\CProgramming\Projects\Project1\Makefile.win"
Executing make...
make.exe -f "D:\CProgramming\Projects\Project1\Makefile.win" all
g++.exe main.o -o "Project1.exe" -L"C:/Dev-Cpp/lib" -
L"D:/CProgramming/fox-1.2.9/src" -L"D:/CProgramming/fox-1.2.9/include"

main.o(.text+0x9c):main.cpp: undefined reference to
`FX::FXString::FXString(char const*)'
main.o(.text+0xc8):main.cpp: undefined reference to
`FX::FXString::FXString(char const*)'
main.o(.text+0xf4):main.cpp: undefined reference to `FX::FXApp::FXApp
(FX::FXString const&, FX::FXString const&)'
main.o(.text+0x11a):main.cpp: undefined reference to `FX::FXString::
~FXString()'
main.o(.text+0x140):main.cpp: undefined reference to `FX::FXString::
~FXString()'
main.o(.text+0x166):main.cpp: undefined reference to `FX::FXString::
~FXString()'
main.o(.text+0x1a2):main.cpp: undefined reference to `FX::FXString::
~FXString()'

main.o(.text+0x1d0):main.cpp: undefined reference to `FX::FXApp::init
(int&, char**, unsigned char)'
main.o(.text+0x209):main.cpp: undefined reference to
`FX::FXString::FXString(char const*)'
main.o(.text+0x29d):main.cpp: undefined reference to
`FX::FXMainWindow::FXMainWindow(FX::FXApp*, FX::FXString const&,
FX::FXIcon*, FX::FXIcon*, unsigned, int, int, int, int, int, int, int,
int, int, int)'
main.o(.text+0x2d6):main.cpp: undefined reference to `FX::FXString::
~FXString()'
main.o(.text+0x2fc):main.cpp: undefined reference to `FX::FXString::
~FXString()'
main.o(.text+0x375):main.cpp: undefined reference to
`FX::FXString::FXString(char const*)'
main.o(.text+0x403):main.cpp: undefined reference to
`FX::FXButton::FXButton(FX::FXComposite*, FX::FXString const&,
FX::FXIcon*, FX::FXObject*, unsigned, unsigned, int, int, int, int, int,
int, int, int)'
main.o(.text+0x430):main.cpp: undefined reference to `FX::FXString::
~FXString()'
main.o(.text+0x456):main.cpp: undefined reference to `FX::FXString::
~FXString()'
main.o(.text+0x4f9):main.cpp: undefined reference to
`FX::FXToolTip::FXToolTip(FX::FXApp*, unsigned, int, int, int, int)'
main.o(.text+0x5c4):main.cpp: undefined reference to `FX::FXApp::create
()'
main.o(.text+0x5f5):main.cpp: undefined reference to `FX::FXApp::run()'
main.o(.text+0x613):main.cpp: undefined reference to `FX::FXApp::~FXApp
()'
main.o(.text+0x645):main.cpp: undefined reference to `FX::FXApp::~FXApp
()'



Relevant Pages

  • Re: Undefined reference
    ... static int square ... I don't understand why I'm getting the undefined reference error. ... I'm using the Dev compiler and it seems that it is ANSI-compatible. ... The declarations in the header file only tell the compiler how ...
    (comp.lang.c)
  • Re: Correct C++ tutorial part 4 "Decisions & conditions" available (Windows, mingw/m
    ... > int main{ ... you are dependent on the compiler ... templateinline bool ifCondition(bool x) ... C:\WINDOWS\TEMP/ccM5baaa.o:x.cpp: undefined reference to ...
    (comp.lang.cpp)
  • Building DDD for MC68K (on Cygwin)
    ... In function `GLOBAL(int10_t, long double, char, ... PannedGE.o:PannedGE.C: undefined reference to ... `GLOBAL(int12_t, long double, char, short, int, double)': ... resolving _applicationShellWidgetClass by linking to ...
    (comp.arch.embedded)
  • Re: Interpreting command lines.
    ... t1.c:: undefined reference to `AddRowsToStrArray' ... Public License as published by the Free Software ... int ReadFile(char *Filename, ... int *NumRows) ...
    (comp.lang.c)
  • Failure with php4 and libgd support
    ... /usr/local/lib/libfreetype.so.9: undefined reference to `memmove' ... /* We use char because int might match the return type of a gcc2 ... configure:34929: checking for gdImageEllipse in -lgd ...
    (freebsd-questions)