Author Topic: Undefined reference to  (Read 3467 times)

PatoAqp

  • Guest
Undefined reference to
« 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Undefined reference to
« Reply #1 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?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ