Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: PatoAqp on June 12, 2009, 04:13:25 am

Title: Undefined reference to
Post by: PatoAqp on June 12, 2009, 04:13:25 am
Hi,

I'm trying to compile a simple program using CodeBlocks 8.02, mainly 3 files: main.cpp, matriz.h and matriz.cpp. However, I keep getting an "undefined reference error". I ve been looking for a solution on Internet and any of them fixes the problem. So far, I tried this:
- Using WinMain instead of main().
- Main with parameters.
- Using END_OF_MAIN().
and many more....

Please HELP!!!

Thanks.
Title: Re: Undefined reference to
Post by: MortenMacFly on June 12, 2009, 08:50:19 am
I'm trying to compile a simple program using CodeBlocks 8.02, mainly 3 files: main.cpp, matriz.h and matriz.cpp.
This is not related to C::B. Pay attention that this thread does not get locked. Anyways - without any more information nobody will be able to help you. At least you should provide the project file. It seems your need to link against libraries that you are using. But how shall we tell if you do not provide any information other than file names?