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

Composite project using opengl and iostream

Started by mysteriousmonkey29, December 24, 2011, 06:31:40 PM

Previous topic - Next topic

mysteriousmonkey29

I am trying to complete this openGL video tutorial series with code blocks as my IDE and GNU GCC as my compiler:
http://www.videotutorialsrock.com/

Unfortunately, each example program includes iostream as well as openGL and GLUT libararies.  When i try to compile the first program, code blocks claims that it cannot find iostream, and does not recognize the "using namespace std" line.  I have tried manually linking the iostream library, but it does not solve the problem.

Is there any way to create a composite project on code blocks, like in this case a console application/openGL project?  I have already tried shift clicking in the type of project menu (to try to select two types of projects at once), but it apparently isn't that simple, if it is even possible at all.  Any ideas on how to solve this problem, or how to create composite projects?

stahta01

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]

mysteriousmonkey29

thanks a bunch!  that worked, although it appears the default setting for an opengl project is a .c file :(.  fortunately, although it does take a long time, i just created a console application and manually linked all the libraries, which does work