News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Linker Problem

Started by Rbt618, December 14, 2019, 07:12:06 AM

Previous topic - Next topic

Rbt618

I am assuming I have a linker problem.
I run my program and get an "Undefined" function error.
But if I include the Implementation file on my main.cpp file then it will run. So I am assuming codeblocks is not linking the Header and the implementation files >> that's why I have to include the implementation file on main.cpp.
I use Ubuntu 18.04 and codeblocks 17.04.

Once I do include the implementation file on main.cpp, then my program runs perfectly. That's why I think its a Linker Error

Any Thoughts on resolving this??

stahta01

#1
Add the files to the CB Project.

Note: If you are not using a CB Project, then I suggest using one.

Edit: If you still have problems post a build log!
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]