Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 23rd, 2004, 7:53 PM   #1
Gradius
Newbie
 
Join Date: Nov 2004
Posts: 10
Rep Power: 0 Gradius is on a distinguished road
Im new to programming and i studied a few tutorials. So im using the Dev C++ compiler and it doesnt work. Heres the problem. I use code from THEIR help manual and i try to compile it. It says it works but if i go to run it says "source file not compiled". I think its supposed to make an executable in my main directory because i got it to work before. And Im using windows millemnium edition.

What do you think? Maybe i should just visual C++
Gradius is offline   Reply With Quote
Old Nov 24th, 2004, 7:15 AM   #2
Eggbert
Professional Programmer
 
Eggbert's Avatar
 
Join Date: Nov 2004
Posts: 250
Rep Power: 4 Eggbert is on a distinguished road
Are you compiling the source file or building the project? IDEs will generally differentiate between compilation (which simply goes through the steps of creating an object file) and building (which actually results in an executable file that you can run).
Eggbert is offline   Reply With Quote
Old Nov 24th, 2004, 2:25 PM   #3
Gradius
Newbie
 
Join Date: Nov 2004
Posts: 10
Rep Power: 0 Gradius is on a distinguished road
Im compiling the source. I know there is something wrong because i got it to work before.
Gradius is offline   Reply With Quote
Old Nov 24th, 2004, 4:44 PM   #4
monkey8
Newbie
 
Join Date: Nov 2004
Posts: 12
Rep Power: 0 monkey8 is on a distinguished road
We need more information.

What are you trying to compile? Something you wrote? What's the code?

Perhaps you are forgetting to link?

I've used dev-c++ the beta (newest) version and I haven't had any problems, it was the best windows c++ IDE.

Don't use ms vc++ since they don't use standard libraries. That's a bad thing.
monkey8 is offline   Reply With Quote
Old Nov 25th, 2004, 1:11 AM   #5
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
yeah it does the same to me. i'm too lazy to f**k with it though so i use it to edit with and use borland 5.5 to compile on the command line since that's where i run all my s**t from anyway. i'm new to C/C++ and i come from Java where everything is from one source---SUN. since C/C++ isn't a commercial creation you run into variations and it's frustrating sometimes. but i actually am starting to like it better than Java.

:ph34r:
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Nov 25th, 2004, 5:32 AM   #6
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
for borland, consider this solution from OOBLE:

Create a file called bcc32.cfg and save it in the C:\Borland\Bcc55\bin folder. Then copy and paste this into it:
-I"c:\Borland\Bcc55\include"
-L"c:\Borland\Bcc55\lib"

Then create a file called ilink32.cfg, containing:
-L"c:\Borland\Bcc55\lib"

(replace all paths with their equivalents on your system).

Now try running it.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Nov 25th, 2004, 6:57 AM   #7
Eggbert
Professional Programmer
 
Eggbert's Avatar
 
Join Date: Nov 2004
Posts: 250
Rep Power: 4 Eggbert is on a distinguished road
>Im compiling the source.
Go to File..New and select Project. My preference is Empty Project because it's easier to work with raw code that way. Select C or C++, name it, and select Ok. This opens a new project for you. You can then select the Project tab on the left hand side of the window, right click on the project you just made and select Add to Project. Browse for your source file and select Open. This will add the source file you've been working on to the project you just made. Now type F9 to compile and run. See if this works as opposed to what you have been doing.

>Don't use ms vc++ since they don't use standard libraries.
Visual C++ 6 had issues with the standard libraries because it was written before the standard was ratified. Visual C++ .NET is one of the more conformant implementations around.
Eggbert is offline   Reply With Quote
Old Nov 25th, 2004, 4:37 PM   #8
Gradius
Newbie
 
Join Date: Nov 2004
Posts: 10
Rep Power: 0 Gradius is on a distinguished road
I uh got it to work. Thanks guys.
Gradius is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:37 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC