Thread View: gnu.g++.help
1 messages
1 total messages
Started by Jonathan Martin
Sat, 06 Apr 1996 07:04
[Q] I'm having a problem linking this simple one...
Author: Jonathan Martin
Date: Sat, 06 Apr 1996 07:04
Date: Sat, 06 Apr 1996 07:04
25 lines
1141 bytes
1141 bytes
Ok, I'm teaching myself c++, so bare with me.
When I compile this:
#include <CursesW.h>
main () {
CursesWindow mine (20,20,5,5);
}
with the command line:
g++ -I/usr/include/ncurses -ohello hello.cc
I get this from the linker:
/tmp/cca...: undefined reference to 'CursesWindow::~CursesWindow(void)'
/tmp/cca...: undefined reference to 'CursesWindow::CursesWindow(int,int,int,int)'
I checked the command line that g++ is feeding to ld, and -lg++ is
there. I made a hello.o and checked the symbol table, and the symbols
that ld's having trouble with seem to match those in libg++ ok. I
dunno. Like I said, I'm new at this.
Any help would be greatly appreciated.
-Jon
jmartin@snet.net
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads