News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Linux environment- global variables

Started by Joss, September 10, 2007, 12:15:23 AM

Previous topic - Next topic

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

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

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.

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.

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.