Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: indigo0086 on March 05, 2007, 03:37:51 am

Title: Importing Visual Studio projects and want libs to automatically import.
Post by: indigo0086 on March 05, 2007, 03:37:51 am
I'm studying some example programs provided with a book on OpenGL and the examples were made with Visual Studio.  I can import the projects just fine and it has all the include paths, but the problem is the libraries.  I have to manually add the opengl Libraries to each project I use.  Is there a way to reduce the constant adding of these libraries and just have them automatically show up for when I import projects?
Title: Re: Importing Visual Studio projects and want libs to automatically import.
Post by: mandrav on March 05, 2007, 08:57:55 am
I'm studying some example programs provided with a book on OpenGL and the examples were made with Visual Studio.  I can import the projects just fine and it has all the include paths, but the problem is the libraries.  I have to manually add the opengl Libraries to each project I use.  Is there a way to reduce the constant adding of these libraries and just have them automatically show up for when I import projects?

Yes, zip and attach one such project (*.vcproj) here so we can have a look on importing it.
Title: Re: Importing Visual Studio projects and want libs to automatically import.
Post by: indigo0086 on March 05, 2007, 12:46:54 pm
Well I can import it, but the build options are specific to msvc, the linker options don't have the opengl libs that I need in them.



[attachment deleted by admin]
Title: Re: Importing Visual Studio projects and want libs to automatically import.
Post by: indigo0086 on March 05, 2007, 02:59:25 pm
Well, before I was opening the visual studio projects (which CB automatically recognizes) and those weren't set up for glib.  I then opened the .vcproj fil and it has the libraries set up sans gdi32.  Oddly CB isn't in the file associations in the environment settings.
Title: Re: Importing Visual Studio projects and want libs to automatically import.
Post by: mandrav on March 05, 2007, 05:09:02 pm
Well, before I was opening the visual studio projects (which CB automatically recognizes) and those weren't set up for glib.  I then opened the .vcproj fil and it has the libraries set up sans gdi32.  Oddly CB isn't in the file associations in the environment settings.

I didn't understand a thing of what you said...
Title: Re: Importing Visual Studio projects and want libs to automatically import.
Post by: indigo0086 on March 05, 2007, 05:27:43 pm
*sigh*

Okay, in that file I gave, there is a visual C++ workspace and project (*.dsw, *.dsp) and visual studio solution and project files (.sln, *.vcproj).  Now if you go to he environment options in CodeBlocks and click on the manage files, only the .dsp and .dsw files can be associated with CB, not the Visual Studio files.

Now Based off those associations I opened the .dsp and it opened all the files fine but without the lib files that I need for an opengl project to work.

Title: Re: Importing Visual Studio projects and want libs to automatically import.
Post by: indigo0086 on March 06, 2007, 01:19:31 pm
er um...so what's the verdict?