Author Topic: Wont run my projects!  (Read 6019 times)

Offline veltins

  • Advanced newcomer
  • *
  • Posts: 17
Wont run my projects!
« on: March 20, 2010, 02:34:14 pm »
Hey!

I start by choosing console application. Then microsoft visual studio 2008 compiler. THen i make sayhello, but when I compile and press build and try running the application from code::blocks nothing happens.. Just dead silence.

Offline veltins

  • Advanced newcomer
  • *
  • Posts: 17
Re: Wont run my projects!
« Reply #1 on: March 20, 2010, 04:52:36 pm »
bump

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1442
    • CenizaSOFT
Re: Wont run my projects!
« Reply #2 on: March 20, 2010, 05:35:43 pm »
You have not provided any useful information like Code::Blocks version/revision, logs, full command line... and you still expect us to guess what your problem is? It is quite rude as well to bump a thread only after nearly 2 hours and half of being posted.

Please expand on your "nothing happens" if you want help.

Offline veltins

  • Advanced newcomer
  • *
  • Posts: 17
Re: Wont run my projects!
« Reply #3 on: March 20, 2010, 05:39:11 pm »
I got v 4,4. Nothing happens ... It just is like i didnt even press it..No error message.. Nothing

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 6665
    • Jens unofficial debian-repository for the Code::Blocks - IDE
Re: Wont run my projects!
« Reply #4 on: March 20, 2010, 06:03:24 pm »
I got v 4,4.

What do you mean ?
There is no v 4,4 of C::B available.
Regards

Jens  Debian - nightlies (and release) : http://apt.jenslody.de/ Fedora [18 - 20]- and CentOS/RedHat [5, 6 & 7] - nightlies : http://rpm.jenslody.de/

Offline veltins

  • Advanced newcomer
  • *
  • Posts: 17
Re: Wont run my projects!
« Reply #5 on: March 20, 2010, 06:08:27 pm »
srry.. xD 8,02

Offline veltins

  • Advanced newcomer
  • *
  • Posts: 17
Re: Wont run my projects!
« Reply #6 on: March 21, 2010, 11:52:50 am »
please help me!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 4474
    • My Best Post
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

Offline veltins

  • Advanced newcomer
  • *
  • Posts: 17
Re: Wont run my projects!
« Reply #8 on: March 21, 2010, 02:22:19 pm »
compiler still aint working :S

Offline stahta01

  • Lives here!
  • ****
  • Posts: 4474
    • My Best Post
Re: Wont run my projects!
« Reply #9 on: March 21, 2010, 02:28:57 pm »
compiler still aint working :S

Any, you are still not giving us info needed to help you.

Need to see Build Log.
What OS and Version, Version of Code::Blocks, and version of Compiler!
Did you install the Compiler?

Tim S.
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

Offline veltins

  • Advanced newcomer
  • *
  • Posts: 17
Re: Wont run my projects!
« Reply #10 on: March 21, 2010, 05:25:28 pm »
compiler: microsoft visual studio 2008
Code::blocks version: 8.02 as stated above.. read next time :D
build :


-------------- Build: Debug in sayhello ---------------

cl.exe /nologo /W3 /EHsc  /Zi /D_DEBUG /MDd    /I"C:\Program Files\Microsoft SDKs\Windows\v6.0A\include" /I"c:\Program Files\Microsoft Visual Studio 9.0\VC\include"  /c main.cpp /Foobj\Debug\main.obj
main.cpp
link.exe /nologo /LIBPATH:"C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib" /LIBPATH:"c:\Program Files\Microsoft Visual Studio 9.0\VC\lib"  /out:bin\Debug\sayhello.exe msvcrtd.lib msvcprtd.lib  obj\Debug\main.obj   /DEBUG
Output size is 24.50 KB
Process terminated with status 0 (0 minutes, 2 seconds)
0 errors, 0 warnings
 

Os: windows vista 32 bit.

Install compiler? I think it installed when I did install microsoft visual studio 2008

Offline stahta01

  • Lives here!
  • ****
  • Posts: 4474
    • My Best Post
Re: Wont run my projects!
« Reply #11 on: March 21, 2010, 05:36:48 pm »
Looks like it,code::blocks, is working to me. Note, I do NOT use MSVC very often; so, it might have a obvious error to an regular user of MSVC.

When you run the program you compiled from the command line did it work correctly?

If failed from normal command line, try running from "Visual Studio 2008 Command Prompt"; did it work here?

When you build it; try doing a release build. The debug build under Visual Studio seems to be harder for newbies to setup.

Are you sure the code you compiling does anything?

Try running Code::Blocks as Admin or disable Vista UAC.

Tim S.
« Last Edit: March 21, 2010, 05:59:00 pm by stahta01 »
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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 4474
    • My Best Post
Re: Wont run my projects!
« Reply #12 on: March 21, 2010, 05:55:57 pm »
My Re-Build Log did not see a major diff; my program run when clicking on run Green Triangle
Code: [Select]
-------------- Build: Debug in testmcvc9 ---------------

cl.exe /nologo /W3 /EHsc  /Zi /D_DEBUG /MDd    /I"D:\Program Files\Microsoft SDKs\Windows\v6.0A\include" /I"D:\Program Files\Microsoft Visual Studio 9.0\VC\include"  /c main.cpp /Foobj\Debug\main.obj
main.cpp
link.exe /nologo /LIBPATH:"D:\Program Files\Microsoft SDKs\Windows\v6.0A\lib" /LIBPATH:"D:\Program Files\Microsoft Visual Studio 9.0\VC\lib"  /out:bin\Debug\testmcvc9.exe msvcrtd.lib msvcprtd.lib  obj\Debug\main.obj   /DEBUG
LINK : bin\Debug\testmcvc9.exe not found or not built by the last incremental link; performing full link
Output size is 24.50 KB
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings

My program runs from both normal and MSVC Command Line; after, changing to exe folder.

Tim S.
« Last Edit: March 21, 2010, 06:03:07 pm by stahta01 »
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

Offline veltins

  • Advanced newcomer
  • *
  • Posts: 17
Re: Wont run my projects!
« Reply #13 on: March 21, 2010, 06:57:45 pm »
help me through teamviewer plz? I dont understand what u guys saying XD

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 7788
Re: Wont run my projects!
« Reply #14 on: March 21, 2010, 07:42:46 pm »
Goto Project -> Properties -> Build Targets.
Then verify that "Type" is "Console application" and "Pause when execution ends" is checked.

If these two are set correctly, you can post your project, so someone can take a look at it.
<debugger plugin maintainer>
(most of the time I ignore long posts)