Discussion Locked

Compile Linux pgms in Windows

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a C program written on Linux platform,
i need to run it in a windows platform, i try compiling it on vc++ but some of the header files dont work.
Is there any conversion program for this.
Can i create dll's in linux.
Any suggestions.

5 replies

by rbgnr111

if it's written for linux it won't work for windows. c programs have specific calls for whatever platform the are coded for. If you know a enough about programing you may be able to port it for windows.

by ananthap

To add to the previous answer.
(1) Why go to vc++? Why not any other c++ or c? I mean it depends on the complexity or otherwise of the C program. (You mention "C" and not "C++" as the source. If straaght "C", then maybe some other (even free) "C" compiler).
(2) Yes, header files are a problem. But again all you gotta do is find the matching header. Eg. curses could be substituted weith conio. Coupled with conditional compiles, flag setting and you have it.

A use I put it to is to convert and establish application data controls between "flat files"/csv ftp'ped between Unix and DOS/W98. The common program runs at both ends.

Hope this helps.
End of mail.

This discussion is closed to new replies.