Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: The__Malteser on January 03, 2014, 04:58:14 pm
-
Hi. I am working with Code::Blocks and trying to program with the C language. I have created a header file, an implementation file and the main. When I compile, I have no errors, but when I run it I get the following error.
You must select a host application to "run" a library...
The libraries are all in the same folder.
(http://gyazo.com/5794859baefd574c59b17f56fe479f69.png)
I also did include the header files in my main program.
(http://gyazo.com/049717113d714adc1fd33d30827152cf.png)
I have tried on 2 different PCs, and it didn't work. i tried with a different piece of code and it worked flawlessly.
What should I do?
Thanks.
-
I guess you used the template for a (shared|static) library.
Go to "Project -> Properties -> Build targets" and make sure the build type for the appropriate target is gui or console application.
-
Solved. Cheers.