![]() |
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++ |
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).
|
Im compiling the source. I know there is something wrong because i got it to work before.
|
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. :angry: |
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: |
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"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. |
>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. |
I uh got it to work. Thanks guys.
|
| All times are GMT -5. The time now is 2:00 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC