| | |
Compile C code, only a quick question; help please!
Thread Solved |
I have been given some C code to compile which is several years old and need to compile it to see exactly what the program does. I know visual basic to an amount but i haven't touched C before. Anyway, how do i go about compiling the C code when that is all i have (eg. no project files currently). I have the various Express 2008 programs and Dev-C++ but am unsure how to go about making the program run. Please help asap!
you should first create an empty project then copy the source files that you have into the project directory and finally add the files to the project. If you are using VC++ 2008 Express: read and watch this tutorial
If you really have zero knowledge of C language then I'd suggest you take a look at some online tutorials or read a book. There are many suggestions in the Read Me threads at the top of the C++ board.
If you really have zero knowledge of C language then I'd suggest you take a look at some online tutorials or read a book. There are many suggestions in the Read Me threads at the top of the C++ board.
Last edited by Ancient Dragon; Apr 23rd, 2008 at 11:47 pm.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Hmm MSDN seems to be having problems at the moment "Sorry, we were unable to service your request." I will try that one again in the morning. Incidentally, if i try to compile anything in Dev-C++ (latest version) i get "D:\Dev-Cpp\Makefile.win [Build Error] [main.o] Error 1 " even a hello world program won't compile. Is it worth trying to sort this or just use C++ 2008? The program isn't too long luckily and most of the things that come up in it look similar to VB 2008 code so i won't have too many problems with annotating the listings, its just getting the damn thing to run! Thanks for the speedy reply by the way
Last edited by RedStarlight; Apr 23rd, 2008 at 11:54 pm.
If you can get to this page scroll down to the bottom of the page and click the [b]Introduction to Visual C++ Video" link.
Regarding Dev-C++. What version of MS-Windows are you using ? It has a vew problems with Vista that you need to correct in the compile options.
Regarding Dev-C++. What version of MS-Windows are you using ? It has a vew problems with Vista that you need to correct in the compile options.
Last edited by Ancient Dragon; Apr 24th, 2008 at 12:03 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Yep, sorry should have added to that; yes it is the evil (?) vista so I should have assumed as much. I can get to that page but again the page it links to is either down or just isn't loading for me. Could you drop me a direct url to download the video or to how to sort the Dev-C++ compiling problem? Sorry to be a pain but your help is much appreciated!
Video here
I'm not having a problem with any of the links I posted. They work ok for me.
The changes for Dev-C++ are just directory settings. Go to menu Tools --> Compiler Options. In there change the relative paths to full paths in each of the tabs.
I'm not having a problem with any of the links I posted. They work ok for me.
The changes for Dev-C++ are just directory settings. Go to menu Tools --> Compiler Options. In there change the relative paths to full paths in each of the tabs.
Last edited by Ancient Dragon; Apr 24th, 2008 at 12:34 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Urgh i don't know what im doing wrong here, the directories are set as following and the program was installed with the default options:
Binaries: "C:\Dev-Cpp\Bin"
Libraries "C:\Dev-Cpp\lib"
C Includes "C:\Dev-Cpp\include"
I still get a "C:\Dev-Cpp\Makefile.win [Build Error] [main.o] Error 1 " though?
I managed to solve compiling the program in Visual Studio 2008 command prompt
Thanks for the help i don't need to sort out Dev-Cpp now. Many thanks and keep up the good work, its much appreciated!
Binaries: "C:\Dev-Cpp\Bin"
Libraries "C:\Dev-Cpp\lib"
C Includes "C:\Dev-Cpp\include"
I still get a "C:\Dev-Cpp\Makefile.win [Build Error] [main.o] Error 1 " though?
I managed to solve compiling the program in Visual Studio 2008 command prompt
Thanks for the help i don't need to sort out Dev-Cpp now. Many thanks and keep up the good work, its much appreciated! Last edited by RedStarlight; Apr 24th, 2008 at 3:49 pm.
![]() |
Similar Threads
- quick question w\ a program (Java)
- quick question w\ a program (C++)
- Programming FAQ - Updated 1/March/2005 (Computer Science)
- Quick Question (C++)
- another quick question -pointers (C++)
- Quick question (C++)
- Newbi can anyone help with methods and classes (Java)
- Need Help counting Array Length (C++)
Other Threads in the C Forum
- Previous Thread: problem with size_t filesize
- Next Thread: Changing string
| Thread Tools | Search this Thread |
#include * adobe ansi array asterisks binarysearch centimeter changingto char character cm convert copyimagefile cprogramme creafecopyofanytypeoffileinc database dynamic execv feet fgets file floatingpointvalidation fork function getlogicaldrivestrin givemetehcodez global grade gtkwinlinux hacking histogram ide inches include incrementoperators infiniteloop input interest intmain() iso kernel keyboard kilometer license linked linkedlist linux list locate looping lowest match matrix meter microsoft number oddnumber opendocumentformat opensource openwebfoundation owf pattern pdf performance pointer posix power probleminc process program programming radix recursion recv recvblocked research reversing segmentationfault sequential single socket socketprograming socketprogramming standard strchr string suggestions systemcall test threads turboc unix urboc user variable voidmain() wab whythiscodecausesegmentationfault windowsapi






