[Help] Compiling to linux
#1

I have developped an INI file plugin for a while, and I'm having an hard time understanding how to compile my project to Linux.
I'm currently using Visual Studio 2010 IDE.

I know nobody really likes to answer the "How to compile to linux" question but it will be very helpful if you can help me quickly.
And I also know this isn't a "c help forum" but i posted it in "Stack Overflow" and non of their responds helped me.

thanks,
N1trO
Reply
#2

If your project produces a makefile, you can export the files to Linux and run "make" to compile your project with the g++ compiler, if I recall.
Reply
#3

Yes, i have a file called Makefile with no extension. So i need to install Linux and a g++ compiler.
But i dont really understand what to do when you said "run "make" to compile".

thank,
N1trO
Reply
#4

Install a Linux-based OS like CentOS on a virtual machine (or Ubuntu for a GUI) and move the files over, then open Terminal on the system and "cd" to the directory where the files are and type "make" as it will try to compile your project for Linux.
Reply
#5

Thanks!
I'll try it!

edit:
I need to modify the code if I'm only using "fstream" and other build-in libraries?
Reply
#6

Solved!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)