![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Dec 2006
Posts: 49
Rep Power: 0
![]() |
Help with C Program I've downloaded.
I've recently downloaded an open source program where programmers, developers, and individuals can download the program and modify source code, headers, etc. Basically I've downloaded a Program but when I extract its contents all it is, is a bunch of C source and C header files and some other various files labeled "Install" and "Make" and "Configure" but the problem is..there's no extensions with these files and when I click on them it pops open the windows application selector and asks me what app I want to open the files with but I have no idea which one to use. I've tried opening them with noptepad which works and theres text in there and for instance in a file called "install" it gave me these exact instructions
"The following should be all you need to make soureditorv3.0 work: ./configure make make install Good luck" I HAVE NO IDEA what to do, to make it work! Any suggestions?? |
|
|
|
|
|
#2 |
|
The Supreme Ruler
![]() Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6
![]() |
Look for a Windows version of that program.
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower |
|
|
|
|
|
#3 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
The trio of a configure script, make, and make install are usually associated with unix derivatives. Note that there is no "make" program on windows. You might still be able to compile it...it depends. Often times, if the program will work on windows at all, there will be a project file for Visual Studio, DevC++, etc. or even just a file saying that it can be built on windows (usually with some brief specifics). In that last case, you may need windows versions of a number of command line utilities, such as those provided by Cygwin.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Actually, you can compile Windows programs from the command line, too. MS has had NMAKE for ages, and Dev-Cpp actually generates a makefile from the IDE, if you use the ide, and runs it. MS Visual can do that, too.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Feb 2007
Location: San Diego, CA
Posts: 1
Rep Power: 0
![]() |
You can possibly use Cygwin
The program is a Linux/Unix program. You may be able to compile it using the Cygwin tool kit http://cygwin.com. This installs a Linux type bash shell and most all the GNU/Linux tools. Install the gcc package and the make program. Move the code to your cygwin directory ( usually \cygwin\home\yourname) and follow the instructions by typing into the Cygwin shell. Many Linux open source programs may be used on Win this way and the bash shell window is much more useful than the standard CMD shell. If you include the c:\cygwin\bin path in your environment, the GNU tools will work in a standard CMD window.
The easier way is to create a C/C++ project using VC6 or VS2003 or VS2005 wizard. Move the .c and .h file to the project directory copyiing over the wizard .cpp and .h files. Then include the .c files using 'add existing item' in the project menu. It will usually find the .h files if they are in the same directory as the .c files. You will likely have to add "#include <windows.h>" to the c files and may have to change other "#include" directives to get the program to compile. The trick here is to comment out any includes it can't find and use the Help system to find the include for any functions that are missing or undefined. I hope this helps, Mike Last edited by mmcginty; Feb 7th, 2007 at 6:08 PM. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Language display in program | Prm753 | C++ | 3 | May 30th, 2006 5:45 PM |
| Help me program this with Watcom! | DBZ | Other Programming Languages | 3 | Feb 26th, 2006 9:41 PM |
| Creating a program to test a program | sixstringartist | C | 8 | Jan 21st, 2006 1:15 PM |
| auto run hidden program. | kuroko | C++ | 9 | Aug 6th, 2005 10:05 AM |
| airport Log program using 3D linked List : problem reading from file | gemini_shooter | C++ | 0 | Mar 2nd, 2005 4:12 PM |