Author Topic: Project on windows and linux, link problems  (Read 4381 times)

Offline labidus

  • Multiple posting newcomer
  • *
  • Posts: 10
Project on windows and linux, link problems
« 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!
« Last Edit: June 19, 2013, 03:34:19 am by labidus »

Offline golgepapaz

  • Multiple posting newcomer
  • *
  • Posts: 44
Re: Project on windows and linux, link problems
« Reply #1 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline labidus

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Project on windows and linux, link problems
« Reply #3 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.