Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: labidus on June 19, 2013, 12:10:34 am

Title: Project on windows and linux, link problems
Post by: labidus on June 19, 2013, 12:10:34 am
I was working for few month on linux with code::blocks, got a big project with a lot of libs.

Now back on windows, the project open and I can compile, I setuped GCC with latest version, I use MinGW & cygwin.

My problem is some library on linux don't use the same name on windows, for example GLEW on linux vs GLEW32 on windows even if its a 64 bits app.

This is one of my problem, so I cannot specify different lib for a platform, is they are way to do this in my project?

Anyway thankyou in advance for any help!
Title: Re: Project on windows and linux, link problems
Post by: golgepapaz on June 19, 2013, 12:09:51 pm
Create  a new project for every configuration like "yourproject" or "your project-unix"
or different configurations in the same project.
Title: Re: Project on windows and linux, link problems
Post by: oBFusCATed on June 19, 2013, 12:29:05 pm
You can also use this: http://wiki.codeblocks.org/index.php?title=Global_compiler_variables
Title: Re: Project on windows and linux, link problems
Post by: labidus on June 19, 2013, 06:38:55 pm
thanks I will take a look with the global var.

Having 2 projects is no good since I need to sync them, but the other way I see is to add build target for windows, its maybe the best solution since it only change the compilation and link settings.