Author Topic: Linux environment- global variables  (Read 4713 times)

Offline Joss

  • Single posting newcomer
  • *
  • Posts: 9
Linux environment- global variables
« on: September 10, 2007, 12:15:23 am »
Hi to all,

I am a newbie with codeblocks. I have installed a linux version , (slackware 12). the program run well but I don't know how to set global variables to specify wxWidgets libraries; I mean which variable name and directores.

I am reasonig like if I were in windows environment. Am i doing a mistake ?.

I see that the mingW gcc compiler have been detected. that is enough?

Someone could give me any suggestion about?

Thanks to all.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Linux environment- global variables
« Reply #1 on: September 10, 2007, 07:38:21 am »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Joss

  • Single posting newcomer
  • *
  • Posts: 9
Re: Linux environment- global variables
« Reply #2 on: September 10, 2007, 07:39:28 pm »
Thank you mortenMacFly , but I think that is not what i was loooking for. I seen that wiki but it refer to windows environment. I have already configured in WinXP. I was looking for linux environment.

any other suggestion?




Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Linux environment- global variables
« Reply #3 on: September 10, 2007, 08:03:22 pm »
I am a newbie with codeblocks. I have installed a linux version , (slackware 12). the program run well but I don't know how to set global variables to specify wxWidgets libraries; I mean which variable name and directores.

Actually you don't need Global variable on Linux. On Linux, wx-config does the job. Just add `wx-config --cflags` in Project > Build options > Other options and `wx-config --libs` in Project > Build options > Linker settings > Other linker options. Don't forget to add the backticks.

Or simpler way, use wxWidgets project wizard which will do these jobs for you.
Be a part of the solution, not a part of the problem.

Offline Joss

  • Single posting newcomer
  • *
  • Posts: 9
Re: Linux environment- global variables
« Reply #4 on: September 10, 2007, 10:47:09 pm »
Tanks biplab,

You ( of course ) right. I tray with a new project and all is OK!  :D

I read all the wiki but I didn't find that information.

Tanks a lot.