automake
[Top][All Lists]
Advanced

[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.

CODE:

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

END

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.
Thanx

--
Regards:
Adnan Shaheen.
+92-333-962-7637
Software Engineer,
AyeSoft,Islamabad, Pakistan.


reply via email to

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