LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-07-2006, 01:28 AM   #1
mitsulas
LQ Newbie
 
Registered: May 2006
Distribution: Debian
Posts: 21

Rep: Reputation: 0
How to create Windows executable from Linux?


Is there any IDE in Linux that can produce easily Windows executable from Linux?.(I know that Java is almost cross-platform but I prefer C++)
Can SQL Server 2000 run on Linux?
 
Old 09-07-2006, 03:19 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Possibly this one:
http://www.bloodshed.net/devcpp.html
 
Old 09-07-2006, 03:28 AM   #3
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
Is there an IDE in Windows for producing Macintosh binaries? No.
Same for Linux producing Windows binaries. Well, actually you could maybe do that with Wine.

Java IS cross-platform! Some unofficial extensions to it are not so much, but it's your choice to use them or not.

SQL Server is a Windows program. It may run under Wine, but I wouldn't bet on it. Besides, you'd better run MySQL or PostgreSQL, or if you're into very serious business: Oracle on Linux.

If you're after interoperability, but you don't want to use the JVM, I suggest you use Mono, the free software .NET implementation that run on both Windows and Linux.

Yves.
 
Old 09-07-2006, 11:56 AM   #4
mitsulas
LQ Newbie
 
Registered: May 2006
Distribution: Debian
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by theYinYeti
Is there an IDE in Windows for producing Macintosh binaries? No.
Same for Linux producing Windows binaries. Well, actually you could maybe do that with Wine.

Java IS cross-platform! Some unofficial extensions to it are not so much, but it's your choice to use them or not.

SQL Server is a Windows program. It may run under Wine, but I wouldn't bet on it. Besides, you'd better run MySQL or PostgreSQL, or if you're into very serious business: Oracle on Linux.

If you're after interoperability, but you don't want to use the JVM, I suggest you use Mono, the free software .NET implementation that run on both Windows and Linux.

Yves.
Try to run a program that was made on Windows XP with Java 1.5 onto a
machine that runs Linux and Java 1.4 and if runs tell how you did it?
Mono is the same as Java.

From what I understand you cannot totally throw Windows. If you are a
software engineer and you want to use Rational Rose, Microsoft Visual Studio and SQL Server then there is nothing that Linux can do.

Linux is for those who are hackers or those that want a computer just to connect to Internet or write texts.This IS the only truth.
 
Old 09-07-2006, 05:38 PM   #5
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Thumbs down

Quote:
Originally Posted by mitsulas
Try to run a program that was made on Windows XP with Java 1.5 onto a
machine that runs Linux and Java 1.4 and if runs tell how you did it?
Mono is the same as Java.

From what I understand you cannot totally throw Windows. If you are a
software engineer and you want to use Rational Rose, Microsoft Visual Studio and SQL Server then there is nothing that Linux can do.

Linux is for those who are hackers or those that want a computer just to connect to Internet or write texts.This IS the only truth.
Huh? Try running a program made with Java 1.5 in Windows in another Windows machine running Java 1.4. Depending how you've programmed it, it won't work, especially if you made use of Java exclusive features as enhanced loops.

Basically you lack knowledge of how Java works, how Linux works and your totally unconnected reply bashing Linux and not at least thanking peoples trying to help you (as bigrigdriver), added to your limited amount of posts makes you sound like a complete troll.
 
Old 09-08-2006, 11:16 AM   #6
SkippyBoy
Member
 
Registered: Oct 2005
Distribution: Suse10.2
Posts: 65

Rep: Reputation: 15
If you REALLY want to do it - you could always load up a virtual machine of winderz inside of linux, but I don't know if that will help much.

I think that installing Bloodshed under Wine would be your best option otherwise.
Generally executables are written for the operating system they are compiled for. I think it is also possible to execute c++ code from within java - but I haven't learned how to do that yet.
 
Old 04-20-2007, 03:36 AM   #7
haxpor
Member
 
Registered: Dec 2006
Distribution: Ubuntu 20.04
Posts: 87

Rep: Reputation: 15
mitsulas,

That's not true. Linux can do much much more than you say.
If you said that it's mean that you only use Linux for connect to internet, write texts and be hacker (whatever you say).

Do not so fast judge something if you dont really get to it.
 
Old 04-20-2007, 09:53 AM   #8
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
mitsulas,

This is not the forum for looking for information on cross-compilation. Go google, and you will soon find the enormous amount of effort that has gone into achieving this aim. But do not expect to be able to produce native Windows code using native Windows tools on a Linux box.
 
Old 04-20-2007, 02:22 PM   #9
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Rep: Reputation: 31
Quote:
Originally Posted by theYinYeti
Is there an IDE in Windows for producing Macintosh binaries? No.
Same for Linux producing Windows binaries.
What makes you so certain that no Mac to Windows or Linux to Windows cross compiler exists that can be used with an IDE?

Since GCC can be set up as a cross compiler, it should be theoretically possible (though it may be a long and difficult job) to set up any IDE that can act as front end to GCC to cross compile. There's a bit about cross compiling at http://en.wikipedia.org/wiki/Cross_compiler.

Since it's a long time since this was posted I don't know if the original poster is still interested, but this thread will probably get more attention if it were moved to the programming board.
 
Old 04-20-2007, 03:42 PM   #10
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
I think you can use MinGW on Linux to cross-compile for Windows. And use the Code::Blocks IDE. Google for it.

Last edited by brianL; 04-20-2007 at 03:47 PM.
 
Old 04-23-2009, 04:57 AM   #11
mitsulas
LQ Newbie
 
Registered: May 2006
Distribution: Debian
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mitsulas View Post
Try to run a program that was made on Windows XP with Java 1.5 onto a
machine that runs Linux and Java 1.4 and if runs tell how you did it?
Mono is the same as Java.

From what I understand you cannot totally throw Windows. If you are a
software engineer and you want to use Rational Rose, Microsoft Visual Studio and SQL Server then there is nothing that Linux can do.

Linux is for those who are hackers or those that want a computer just to connect to Internet or write texts.This IS the only truth.
After using linux for doing my bachelor and msc thesis on computer science I understand that I misjudged linux. So I want to apologize for that.
 
Old 09-07-2009, 08:07 PM   #12
icecubeflower
Member
 
Registered: Mar 2008
Location: USA
Distribution: Slackware 13.1
Posts: 313

Rep: Reputation: 34
Technically Java isn't cross platform. It IS a platform.
 
0 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
executable files in linux and windows... GEJOE DANIEL Programming 7 01-12-2006 01:59 PM
How to Create an executable file in linux which opens by double-clicking it shivanand Linux - General 5 08-30-2005 12:10 AM
how to create link to an executable? Finlay Slackware 12 10-09-2004 08:19 AM
gcc can't create executable Aeion Linux - Newbie 1 04-06-2004 12:03 PM
running windows executable in linux anamika123 Linux - Software 8 06-05-2003 12:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration