User forums > Using Code::Blocks
Linux environment- global variables
(1/1)
Joss:
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.
MortenMacFly:
--- Quote from: Joss on September 10, 2007, 12:15:23 am ---I don't know how to set global variables to specify wxWidgets libraries; [...]
--- End quote ---
http://wiki.codeblocks.org/index.php?title=Global_compiler_variables
Joss:
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?
Biplab:
--- Quote from: Joss on September 10, 2007, 12:15:23 am ---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.
--- End quote ---
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.
Joss:
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.
Navigation
[0] Message Index
Go to full version