[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: automake

From: Adnan Shaheen
Subject: Re: automake
Date: Fri, 25 Nov 2005 10:59:16 +0500

Well I am writting some code, you tell me what should the compiler do when I
compile it.
As earlier I told you about I am working on a LINUX machine.


#ifdef LINUX
#include <sys/socket.h>
#else // !(LINUX)
#include <winsock.h>
#endif // LINUX


I think you understand this simple code, I want to open the socket.h header
when I am under LINUX and winsock.h header when I am working on the WINDOWS
machine. So what the compiler did to me, is that, it was trying to open the
winsock.h header instead of socket.h.

As when I wrote the makefile mannually, It works fine.

Adnan Shaheen.
Software Engineer,
AyeSoft,Islamabad, Pakistan.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]