I am working on a program for unix and would like to compile it on my (Windows) computer, since I prefer using a GUI instead of a ghey terminal. Can I do this with Dev-C++?
Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the replys! (I am the poster of the question). Actually, yes I have to make fork() calls and it won't compile in Dev-C++. I have to run this program on the unix server at my school, so the only way is to telnet in. Setting up an X-window connection to the server would be too much of a PITA for me.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
CygWin would still be an option if you are interested in locally developing the stuff, otherwise you simply use DevC++ or any other IDE to do the local development and then upload the stuff via scp to the box in order to run/debug it via a simple SSH session.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-09-24
If teh only form of access you have is Telnet, then your best approach may be to develop locally using Dev-C++ configured to use Cygwin, and then if you have no way of uploading the code to the remote Unix machine, you will have to resort to copy & pasting the code from Dev-C++ into your Telnet terminal (or use the terminal program's ASCII file transmission feature if it has one), while running vi or whatever editor you are using.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-09-22
You may be able to re-compile the code with Dev-C++ (unless it uses Unix calls not supported in Win32, such as fork() for example, or GNU C library calls not in MSVCRT); but it will then be a native Win32 program, and will only execute on Win32. This may be useful for development before finally recompiling on Unix.
If you do make Unix calls in your code, then you may get more milage out of Cygwin. This is a Linux emulation layer for Windows, and includes a GCC tool chanin that Dev-C++ can be configured to use. The resulting executables will still be Win32 programs, but you will be able to compile most Unix code unmodified.
Finally if you wich to build Unix code on Windows, you will need a cross compiler, and the resultant executables will not run on the host - you will need a second networked Unix machine with Samba support to test the code - remote debugging may not be straightforward.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't know which UNIX you are referring to, but most modern UNIX implementations come with GUI's. That's to say, developing on UNIX today does not necessarily imply a grey terminal. ;-)
I heard there are development environments on Linux that come close to the Dev-C++ look and feel.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
you can use CodeBlocks or KDevelop under Linux, too-both of which are fairly powerful GUI IDEs
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-09-22
Eclipse/CDT is cross-platform, being implemented in Java.
Of course if you are using a TTY terminal to access the platform, that does not help. You will need direct access to the workstation, or an X-Terminal or X emulation.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-09-22
... or VNC perhaps.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
as long as the server provides terminal access, you should be able to remotely use it from your windows box-by simply using your favorite IDE in order to remotely transfer/compile the stuff on the linux box.
all of this works without any problems if the server provides SSH, otherwise you'll have to resort to scripts and FTP in order to take care of remote build automation and file transfers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am working on a program for unix and would like to compile it on my (Windows) computer, since I prefer using a GUI instead of a ghey terminal. Can I do this with Dev-C++?
Thanks in advance.
Thanks for the replys! (I am the poster of the question). Actually, yes I have to make fork() calls and it won't compile in Dev-C++. I have to run this program on the unix server at my school, so the only way is to telnet in. Setting up an X-window connection to the server would be too much of a PITA for me.
CygWin would still be an option if you are interested in locally developing the stuff, otherwise you simply use DevC++ or any other IDE to do the local development and then upload the stuff via scp to the box in order to run/debug it via a simple SSH session.
If teh only form of access you have is Telnet, then your best approach may be to develop locally using Dev-C++ configured to use Cygwin, and then if you have no way of uploading the code to the remote Unix machine, you will have to resort to copy & pasting the code from Dev-C++ into your Telnet terminal (or use the terminal program's ASCII file transmission feature if it has one), while running vi or whatever editor you are using.
Clifford
You may be able to re-compile the code with Dev-C++ (unless it uses Unix calls not supported in Win32, such as fork() for example, or GNU C library calls not in MSVCRT); but it will then be a native Win32 program, and will only execute on Win32. This may be useful for development before finally recompiling on Unix.
If you do make Unix calls in your code, then you may get more milage out of Cygwin. This is a Linux emulation layer for Windows, and includes a GCC tool chanin that Dev-C++ can be configured to use. The resulting executables will still be Win32 programs, but you will be able to compile most Unix code unmodified.
Finally if you wich to build Unix code on Windows, you will need a cross compiler, and the resultant executables will not run on the host - you will need a second networked Unix machine with Samba support to test the code - remote debugging may not be straightforward.
Clifford
I don't know which UNIX you are referring to, but most modern UNIX implementations come with GUI's. That's to say, developing on UNIX today does not necessarily imply a grey terminal. ;-)
I heard there are development environments on Linux that come close to the Dev-C++ look and feel.
you can use CodeBlocks or KDevelop under Linux, too-both of which are fairly powerful GUI IDEs
Eclipse/CDT is cross-platform, being implemented in Java.
Of course if you are using a TTY terminal to access the platform, that does not help. You will need direct access to the workstation, or an X-Terminal or X emulation.
Clifford
... or VNC perhaps.
as long as the server provides terminal access, you should be able to remotely use it from your windows box-by simply using your favorite IDE in order to remotely transfer/compile the stuff on the linux box.
all of this works without any problems if the server provides SSH, otherwise you'll have to resort to scripts and FTP in order to take care of remote build automation and file transfers