On Sat, Aug 28, 2010 at 9:25 AM, Fabio Rodriguez <[email protected]> wrote:

> Hello List
> I am new to the list and would like a help from you.
>
> I am Linux administrator, I do not know programming and knowledge I have
> on Linux is networking and administration.
>
> I have a c + + code written in Windows (VisualStudio) and I have to
> compile that code to Linux. Then enter any questions.

If you don't know anything about programming, helping you to compile
code is going to be difficult, especially trying to explain the
details. What are you using to compile with on Linux?

> The headers used in this code are:
> io.h, stdio.h, stdlib.h, Winsock2.h. I've been trying some of these
> libraries on Linux and not found.

You won't find winsock2.h on Linux. The others are standard headers,
if your compiler can't find them, your compiler is not installed
correctly. Porting software between the two operating systems is not a
trivial task, especially when you are using networking or filesystem
libraries. You also need to make sure you are linking against the
correct libraries. Using header files is not the same as linking
against libraries.

> Question: Copy bibiotecas those who are on Windows inside of Linux work?
> Or addition to copy something has to set Environment Variables?

In general, you can't use Windows libraries directly on Linux (there
is wine, but let's not confuse the issue right now, it's not a trivial
exercise).

> Another thing that I've been researching are the equivalents, eg
> winshock2.h (Windows) socks.h (I think that's it - Linux), if so I have
> to change my includes libraries for Linux right?

It's not that simple. Linux uses Unix socket libraries. Also, you are
confusing headers with libraries, they are not the same thing.


-- 
Brett W. McCoy -- http://www.electricminstrel.com
------------------------------------------------------------------------
"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