lognok
May 11th, 2007, 08:06 AM
Hi there,
I'm just learning to program in c++ and I'm using Geany to build a simple three-file program that I found at: http://ubuntuforums.org/showthread.php?t=421056&highlight=header it's the last post posted by baltimark.
Copy and paste (test.h + test.cpp + main.cpp) into Geany gives me the following error:
g++ -Wall "main.cpp" -o main (in directory: /home/qaim/Programming/GDA)
/tmp/ccg8VGfQ.o: In function `main':
main.cpp:(.text+0x84): undefined reference to `testReturn()'
collect2: ld returned 1 exit status
Compilation failed.
What's going on here?
This exact code runs fine in Code::Blocks
Do I need to make some kind of 'project' in Geany or custom Makefile?
Thanks for any reply
I'm just learning to program in c++ and I'm using Geany to build a simple three-file program that I found at: http://ubuntuforums.org/showthread.php?t=421056&highlight=header it's the last post posted by baltimark.
Copy and paste (test.h + test.cpp + main.cpp) into Geany gives me the following error:
g++ -Wall "main.cpp" -o main (in directory: /home/qaim/Programming/GDA)
/tmp/ccg8VGfQ.o: In function `main':
main.cpp:(.text+0x84): undefined reference to `testReturn()'
collect2: ld returned 1 exit status
Compilation failed.
What's going on here?
This exact code runs fine in Code::Blocks
Do I need to make some kind of 'project' in Geany or custom Makefile?
Thanks for any reply