This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Newbie questions - compiling Linux exes on Windows OS


Hi Dan,

Many thanks for your informative reply. Although now not
directly related to the list topic, I have just a few final
questions to resolve certain things.


2: I found the file "mingw32-linux-x86-glibc-2.3.tar.gz"
at the following page:
http://www.libsdl.org/extras/win32/cross/README.txt
Is this what I need to help me compile linux exes?

No. That solves the opposite problem: compiling Windows executables on a Linux system!

Right. I did think there was a chance of that...


5: If I were to use perl instead of C/C++, would I need
to compile then? (I doubt it). In which case, how much
faster is using C/C++ over perl in terms of latency and
raw CPU power?

Right, with perl you wouldn't need to compile.


Perl, php, or python are all good choices for cgi scripts.
Because CGI itself is horribly inefficient, the language
you use probably won't be the bottleneck.

Is it inefficient in terms of transferring data between server and user, or in the processing and manipulation of data itself on the server? For example, I want to run a conversion script where the user sends a single MIDI or a picture to be converted. This single file is sent to the server for complicated processing with maths and stuff, but no data is actually being communicated between server and user until the very end - where a single converted file is easily sent to the user. So perhaps the inefficiency you speak of isn't an issue in this case?


6: Anything else I need to know?

If you still want to use C, it's best to use the compiler

The reason I want to use C/C++ is because I eventually also want to make the program as a standalone product so people can use it offline aswell as online. But to avoid the hassle of compilation every time I want to try the program out, I might use perl or PHP after all. In this case, is perl or PHP closer to simple C/C++ code?

One other factor to use perl or PHP is the ease of use required
to test a program on my own PC. The last thing I want to do keep
uploading the program to my server in the bug-testing stage to see
if the programs works. I'd rather just test it on my own system,
and upload it at the end.


installed on the host!  Use ssh to log in remotely and
compile there.

I use CoreFTP to upload to my site using SSH. If what you're saying is as simple as I think it is, is there any instant way of performing a compile on a file (using a shell or something), or will I need to enquire further to obtain information to obtain the location of the server's compiler exe?


If you want to use C and build on your Windows system,
you have to line up your ducks very, very carefully.
You have to know exactly what OS, what C and C++ libraries, and
what kernel are in use on the host.

Right, I'll probably stick with the compiler on my host. But out of interest, if I compiled as linux/unix exe, wouldn't that be a generic exe that would be compatible with most unix/linux setups? If I can compile a Windows exe and assume it to run on most Windows setups, then why can't I do the same for linux/unix? After all, my (image/MIDI) conversion program will only use simple maths and file accessing commands to read and write data to a file.


The steps that follow would depend on those pieces of
information, so come back here after you've gathered
them.  And worst yet, to gather them, you pretty much
have to ssh into the host, at which point you may
as well just his its C compiler anyway...

Who's your hosting provider, anyway?

Tripod. Only kidding ;) I use a host called Neopages.


Cheers,
Daniel


------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]