LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help needed by newbie.... (https://www.linuxquestions.org/questions/linux-newbie-8/help-needed-by-newbie-95413/)

houyi99 09-22-2003 03:33 AM

help needed by newbie....
 
hi guys...
i really new to linux.... and i got a question to ask... hope you guys could help me with it....

its like this.... i want to compile a windows c++ application in linux.... i understand that i could use gcc to do it.....
but when i type gcc -x c++ test.cpp amost 400 errors came out....
i know that theres a difference in coding c++ in windows n linux... but is there anyway i could compile the application so that its compatible with linux without changing the codes? e.g any software i can use to covert windows application to linux so that it will work on linux?

thanks for the help....
:confused:

daveo 09-22-2003 03:56 AM

Re: help needed by newbie....
 
Quote:

Originally posted by houyi99
hi guys...
i really new to linux.... and i got a question to ask... hope you guys could help me with it....

its like this.... i want to compile a windows c++ application in linux.... i understand that i could use gcc to do it.....
but when i type gcc -x c++ test.cpp amost 400 errors came out....
i know that theres a difference in coding c++ in windows n linux... but is there anyway i could compile the application so that its compatible with linux without changing the codes? e.g any software i can use to covert windows application to linux so that it will work on linux?

thanks for the help....
:confused:

As far as I know, there's not. The code written for windows applications is much more different then linux. For example try to call a windows API call under linux, would that work?

Hope this helps,


All times are GMT -5. The time now is 04:15 AM.