link object files

Heiko Leberer Heiko_Leberer at non.agilent.com
Fri May 18 08:44:40 BST 2001


Ralph Hesse wrote:
> 
> Hi,
> 
> I am new to KDevelop and UNIX programming. I have a properly a silly
> question. I have a few files (.h and .cpp) with classes in them and I can
> compile them just fine. But when the linker starts, it is not linking the .o
> files to the main file and so I get "undefined reference". When I compile it
> at the command line and add the .o files, it works.

Hi Ralph,

a little bit more information on how you created the project and files
would be convenient for helping you.

Did you use kdevelop's create project feature? How have the additional
.h & .cpp been created? Internally, with kdevelop File->new, or
Project->new class? If not, did you add the .h and .cpp files to the
project with Project->add new files?

Regards,
Heiko

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list