User forums > Using Code::Blocks
Project on windows and linux, link problems
(1/1)
labidus:
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!
golgepapaz:
Create a new project for every configuration like "yourproject" or "your project-unix"
or different configurations in the same project.
oBFusCATed:
You can also use this: http://wiki.codeblocks.org/index.php?title=Global_compiler_variables
labidus:
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.
Navigation
[0] Message Index
Go to full version