On Jan 11, 2008 11:31 AM, plainwhitewrapper <[EMAIL PROTECTED]> wrote:

> I need to compile a linux code under windows. How do I take the .c
> linux file and turn into a .sln file?

An .sln file is specific to Microsoft's Visual Studio IDEs... it's a
'solution' file that is used to bundle multiple projects (other
development environments may call them 'workspaces'). That's just a
matter of creating a new solution in the Microsoft Visual C++ IDE and
putting you C source file in it.

Your biggest issue, however,  is going to be porting the code to work
under Windows if it has system calls that are Linux specific. If your
C code is a command-line program that uses only ANSI compliant C (no X
GUI APIs, no POSIX calls or other system specific calls), it will
probably compile just fine under Windows as a console application.
Otherwise, you will need to either find the equivalent libraries for
Windows or rewrite portions to use the Windows API.

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to