Being in Window Program for Linux

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.

Being in Window Program for Linux

Postby JanJee » Wed Jun 23, 2004 10:17 pm

:wink: Is there any tool by help of which i can use power of all Linux Libraries for C/C++ using windows environment , and run this program in Linux.
Allah Is The Only Source Of Help.
JanJee
Cadet
 
Posts: 1
Joined: Wed Jun 23, 2004 9:50 pm
Website: http://www.geocities.com/pakipcs
WLM: pakifarukh@hotmail.com
Yahoo Messenger: pakipcs@yahoo.com
Location: Pakistan, Islamabad

Postby hameedkhan » Thu Jun 24, 2004 1:46 am

Hi, janjee!
i dont think that you can use linux (specific) libraries for C/C++ in windows environment. But you can use C/C++ compilers under windows. there is a gcc port available for windows.
you can download it from, http://sourceforge.net/projects/mingw/


HTH,
Hameed Khan.
Thanks,
Hameed U. Khan
Linux User #: 354374
hameedkhan
Havaldaar
 
Posts: 141
Joined: Wed Apr 07, 2004 12:58 am
Location: Karachi, Pakistan

Postby pervaze » Fri Jun 25, 2004 5:19 am

Check out cygwin. Its what we use for our port from linux to windows.

http://cygwin.com/
pervaze
Cadet
 
Posts: 9
Joined: Fri May 28, 2004 8:52 am
Location: Pittsburgh, USA

Postby pervaze » Fri Jun 25, 2004 5:25 am

Cygwin gives you a good degree of compatibility with Linux applications that you want to run on Windows. There are some things, like signals etc. that just don't work the same in the windows environment.

In order to use Cygwin, you have to recompile your application. If you are looking for binary compatibility, this is not the solution. If you want to write code that is portable across Linux and Windows, i.e. may compile and run in both environments, this may work.

Windowing / GUI stuff is another whole issue. I've heard good things about Qt.
pervaze
Cadet
 
Posts: 9
Joined: Fri May 28, 2004 8:52 am
Location: Pittsburgh, USA

RE:Being in Window Program for Linux

Postby Masood » Mon Jul 19, 2004 7:26 pm

Assalam o Alaikum

Dear JanJee,

If your concern is about the Standard C/C++ libraries (for Linux) to be useful in Windows as well, then you are at luck. Both Cygwin and Mingw enable you to use standard C/C++ libraries (for Linux) under Windows.

But you might like a better choice i.e. you may want to do all the pretty work of programming under Windows environment in a nice to use IDE, which gives you access to all the libraries documentation, compilers, debugger, and features like auto-completion of types and functions, syntax high lighting, project management etc., but all in all use the libraries in Windows you have in Linux.

Dev-C++ http://www.bloodshed.net/dev/devcpp.html is the solution, and uses Mingw. Dev-C++ comes with compiler, libraries (all the Standard C/C++ libraries you know under Linux and more others for GUI and 3D graphics programming for example GTK+, FLTK, OpenGL, Win32 APIs, DirectX), debugger, documentation. More packages can be downloaded using its update tool.

You have to write a single source code under Windows in Dev-C++ and compile and run as Windows executable, then rebooting, make a few changes in the source and compile under Linux to have a Linux ELF executable and vice versa. Similarly for dlls and .so shared libraries.

GUI applications development under Linux can be done using GTK+ (C library) http://www.gtk.org and Gtkmm (C++ library) http://www.gtkmm.org , with Anjuta IDE http://www.anjuta.org and Glade http://glade.gnome.org as RAD tool for ease of development.


Fortunately both GTK+ and Gtkmm are also available for Windows platform. You can use them with Dev-C++. Glade is also ported to Windows and comes with Dev-C++ tools. For their complete and error-fee installation read http://www.gtkmm.org/docs/gtkmm-2.4/doc ... l/ape.html and read the Gtkmm official documentation accompanied by a book for Gtkmm programming and for GTK+ programming download the book http://developer.gnome.org/doc/GGAD/GGAD.tar.gz .

Enjoy portability.

Sincerely,

Kashif Masood
masumails@yahoo.com
Masood
Cadet
 
Posts: 4
Joined: Wed Jan 15, 2003 7:16 pm
Yahoo Messenger: masudmails
Location: Shamsabad, Rawalpindi

Magic C++

Postby cppkid » Thu Aug 05, 2004 11:40 am

Hi!
If you want to do developement for linux from windows plateform, the best choice i think is Magic C++, just install its server application on Linux and client application on windows, that is nerarly same as Visual C++, and do your developement on client, when you compile, the code will be compiled on server side.
Its great, and available on internet, if you like it and want a registered version, just contact me, I have contributed in the programming of Magic C++ and i can provide you registration key.
Praise the sea, But stay on Land
cppkid
Lance Naik
 
Posts: 17
Joined: Wed Aug 04, 2004 6:03 pm
WLM: tayyabcool@msn.com
Yahoo Messenger: tayyab_83@yahoo.com
Location: Islamabad

Postby stalactite » Thu Dec 01, 2005 4:15 am

Free Anonymous proxy list download: http://www.checkproxy.net
stalactite
Cadet
 
Posts: 4
Joined: Fri Jul 22, 2005 4:41 pm


Return to “%s” Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron