Author Topic: newbie  (Read 6272 times)

Offline Drknownothing

  • Single posting newcomer
  • *
  • Posts: 7
newbie
« on: August 25, 2009, 06:14:59 pm »
I just download this. i had a few questions first if i want to run a existing code how do i do this. I tried importing which imported the ode but did not run. Next i was wondering since visual c++ express 2008 is free  why use this? I use express 2008 it's a bit of a pain but once you get used to it. I was using widgets dev c++ i did not like that one setting it up i mean

Drknownothing

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: newbie
« Reply #1 on: August 25, 2009, 08:23:08 pm »
I just download this. [...]
I read this several times but I'm afraid I didn't get what you mean at all. What exactly is your question? Could you phrase a question, please?!
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 Drknownothing

  • Single posting newcomer
  • *
  • Posts: 7
Re: newbie
« Reply #2 on: August 25, 2009, 11:00:59 pm »
I was in a rush but the questions were plain the first one is how do i run existing code? When i tried I imported that code but it would not run, so how do i open an existing project?

Drknownothing
« Last Edit: August 25, 2009, 11:10:18 pm by Drknownothing »

Offline blueshake

  • Regular
  • ***
  • Posts: 459
Re: newbie
« Reply #3 on: August 26, 2009, 03:07:28 am »
if it is a cb project,just open it ,
if it is other kind of project.use menu  file->import project.
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline Drknownothing

  • Single posting newcomer
  • *
  • Posts: 7
Re: newbie
« Reply #4 on: August 26, 2009, 06:07:28 pm »
I already tried importing, the code is there but it does not run. This is existing code for opengl program. With VS 2008 I just select the folder and the hpp and cpp files load. Not so here


Drknownothing
« Last Edit: August 27, 2009, 01:24:47 am by Drknownothing »

Offline Drknownothing

  • Single posting newcomer
  • *
  • Posts: 7
Re: newbie
« Reply #5 on: August 27, 2009, 04:40:56 pm »
No one knows? Are there any tutorials i have not had time to look. Codeblocks looks easy but should have better support. Thanks to everyone who replied

Drknownothing

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: newbie
« Reply #6 on: August 27, 2009, 04:58:52 pm »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: newbie
« Reply #7 on: August 27, 2009, 04:59:33 pm »
No one knows?
What do you expect? We know nothing about the project you are trying to import. I don't know what voodoo is done in this VS project that it cannot be correctly imported. For me *every* VS project I imported was ready to run afterwards. Some needed some minor tweaking of the settings - but that usually only if I switched the compiler from Visual C to GCC for example.

So - either you post your project so I (we) can reproduce or explain exactly the steps you do and exactly what is not working and exactly what the error is. You should always include a full build log. The information you provided so far is not enough.
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 Drknownothing

  • Single posting newcomer
  • *
  • Posts: 7
Re: newbie
« Reply #8 on: August 28, 2009, 01:34:48 am »
I tried opening up an existing project and importing, the code is there but when i try to build then run nothing hppens and there is no build log otherwise i would have posted it. When trying a something new it's always a pain
I was just curious about codeblocks I will wait for better tutorials I am using VS 2008 that works perfectly so why waste time. Thanks again

Drknownothing
« Last Edit: August 28, 2009, 02:44:29 am by Drknownothing »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: newbie
« Reply #9 on: August 28, 2009, 07:42:28 am »
I am using VS 2008 that works perfectly so why waste time.
Yes, sometimes finding the error and getting to a solution might be a waste of time. :?

Screenshots might have helped or the project... but hey... probably it's a waste of time, too.
« Last Edit: August 28, 2009, 07:43:59 am by MortenMacFly »
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 Drknownothing

  • Single posting newcomer
  • *
  • Posts: 7
Re: newbie
« Reply #10 on: August 28, 2009, 03:55:17 pm »
You are way too sensitive, i am not putting code blocks down, i am doing something wrong, i know that.
The code is for an opengl tutorial (not my code) go to http://www.videotutorialsrock.com/ and download the source code for a lesson ( i tried loading fog into code blocks) If it works tell me what you did in detail. problem solved

Drknownothing

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: newbie
« Reply #11 on: August 28, 2009, 04:45:15 pm »
I just downloaded the source code for the 'fog' example, and all it has is a Makefile as way to build it.

Anyway, I created a new empty project in Code::Blocks, decompressed the zip file in the same folder as the project, added all source files to the project, added 'glut' to the link libraries (as seen in the Makefile), hit build, and it failed because it could not find gluPerspective. Same story if I use the Makefile. To solve that specific issue, I just Googled and found that GLU needs to be added too. I added GLU to the linker libraries and that was it. It builds and runs.

Just in case, I did that in Linux.