Code::Blocks
October 25, 2014, 03:25:35 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: When registered with our forums, feel free to send a "here I am" post in http://forums.codeblocks.org/index.php/topic,14168.0.html to differ human beings from SPAM bots.
 
   Home   Help Search Login Register  :: WebsiteWiki  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: Using Code Block for First time?  (Read 4869 times)
Newbie C++
Newcomer
*
Offline Offline

Posts: 7


« on: October 10, 2010, 11:51:43 pm »

Hello everyone

I have install Code Block and do I have install the C++ Complier somewhere?

I going to used Code block for SDL programming...

Is there Code Block Tutorial showing me how to install C++ Complier and also SDL too?

Logged
Folco
Regular
***
Offline Offline

Posts: 337



WWW
« Reply #1 on: October 11, 2010, 12:55:10 am »

I think your OS is Open Solaris, isn't it ?
Logged

Sorry for my english, I'm french
MS Visual Studio: the soft which brings problems starting from solutions.
Newbie C++
Newcomer
*
Offline Offline

Posts: 7


« Reply #2 on: October 11, 2010, 01:24:33 am »

My OS is Window 7 Ultimate Smiley

Logged
Folco
Regular
***
Offline Offline

Posts: 337



WWW
« Reply #3 on: October 11, 2010, 09:46:36 am »

Ok, this helps. Smiley

You have two choices :
- Install Code::Blocks and a compiler separately (so download codeblocks-10.05-setup.exe, and a compiler of your choice)
- Install Code::Blocks and MinGW + gcc + all the stuff you need (so download codeblocks-10.05mingw-setup.exe which contains a compiler etc...)

Both are available on the download page : http://www.codeblocks.org/downloads/26
If you have installed codeblocks-10.05mingw-setup.exe, you already have GCC/G++ installed. Smiley

For SDL, I recommend you to look at the official site and at their FAQ.
« Last Edit: October 11, 2010, 10:00:30 am by Folco » Logged

Sorry for my english, I'm french
MS Visual Studio: the soft which brings problems starting from solutions.
Newbie C++
Newcomer
*
Offline Offline

Posts: 7


« Reply #4 on: October 12, 2010, 01:03:01 am »

thank you Smiley

I was doing Console Applacations tutorial (there is links below it)

http://www.cprogramming.com/code_blocks/

but i just got one error saying

Id.exe - cannot find lSDLmain

what does that mean?
Logged
Folco
Regular
***
Offline Offline

Posts: 337



WWW
« Reply #5 on: October 12, 2010, 01:26:47 am »

Did you read the doc here ? http://www.libsdl.org/
Logged

Sorry for my english, I'm french
MS Visual Studio: the soft which brings problems starting from solutions.
Newbie C++
Newcomer
*
Offline Offline

Posts: 7


« Reply #6 on: October 14, 2010, 07:28:33 pm »

here what i have done



when I run the program and i get the error like this Sad

Logged
MortenMacFly
Administrator
Lives here!
*****
Offline Offline

Posts: 8677



« Reply #7 on: October 14, 2010, 09:09:38 pm »

when I run the program and i get the error like this Sad

Well - the linker clearly tells you what's wrong: It cannot find the library you are asking to link against. So you need to provide the path with to library to the linker under "search directories". While you are at it, move the libraries to the right place under "link libraries" and not "other linker options".
Logged

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ
Newbie C++
Newcomer
*
Offline Offline

Posts: 7


« Reply #8 on: October 15, 2010, 05:11:53 pm »

the Console app work great Smiley  Thank you Smiley

I am working on SDL images but I get the error saying this


what I am doing wrong?
Logged
stahta01
Lives here!
****
Offline Offline

Posts: 4432


WWW
« Reply #9 on: October 15, 2010, 05:38:50 pm »

This is just a guess; but is the SDL Library you installed compatible with MinGW GCC?
The errors look like it might be MSVC based library install instead of MinGW GCC library.
What Compiler are you using?

Tim S.
« Last Edit: October 15, 2010, 05:42:40 pm by stahta01 » Logged

C Programmer working to learn more about C++.
Compiling CB Trunk against wxWidgets WX_3_0_BRANCH branch.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org/index.php?title=Main_Page
Newbie C++
Newcomer
*
Offline Offline

Posts: 7


« Reply #10 on: October 15, 2010, 06:09:37 pm »

Hiya,

I got the wrong library which you were right as it was MSVC Based library......
So I have install the MinGW GCCC Library and

now it is working fine.....thank you so much Smiley

Code block IDE With SDL is like a dream....unlike those Viusal express c++ which is like system hogs to me!
Logged
Newbie C++
Newcomer
*
Offline Offline

Posts: 7


« Reply #11 on: October 15, 2010, 06:11:44 pm »

how do I get rid of Console window as I have made the window with Images on it but there is console window behide it.... :?

Logged
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!