[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-cygwin
Subject: Not to use the cygwin1.dll have to use the winsock.dll
From: Vijay Arasalingam <vijay_aras () yahoo ! ca>
Date: 2005-09-14 20:56:05
Message-ID: 20050914205605.19139.qmail () web32109 ! mail ! mud ! yahoo ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi,
I have developed an api in C using cygwin libraries. Now i dont want
to use cygwin1.dll in my librarary.
I have developed an API which includes socket programming /sys/socket.h
In my code,
I have added
#ifdef WIN32
#include <winsock.h>
#else
#include<sys/socket.h>
and rest of the header files.
I wanted to use -mno-cygwin option when compiling and linking.
when I compile I issue this command
gcc -c -mno-cygwin hello.c
when I link
gcc -o hello -mno-cygwin hello.o
it gives me error messages since it cannot find the socket related
calls.
I dont want a dll dependency on cygwin1.dll.
How do i do this. what should be done, any help is aprreciated.
regards,
Vijay.A
---------------------------------
Find your next car at Yahoo! Canada Autos
[Attachment #5 (text/html)]
<DIV>Hi,<BR> I have developed an api in C using cygwin libraries. Now i \
dont want <BR>to use cygwin1.dll in my librarary.<BR> <BR>I have developed an API \
which includes socket programming /sys/socket.h <BR> <BR>In my code,<BR>I have added \
<BR>#ifdef WIN32<BR>#include <winsock.h><BR>#else<BR> \
<BR>#include<sys/socket.h><BR>and rest of the header files.<BR> <BR> <BR>I \
wanted to use -mno-cygwin option when compiling and linking.<BR> <BR> <BR>when I \
compile I issue this command<BR>gcc -c -mno-cygwin hello.c<BR> <BR>when I link<BR>gcc \
-o hello -mno-cygwin hello.o<BR> <BR>it gives me error messages since it cannot find \
the socket related <BR>calls.<BR>I dont want a dll dependency on cygwin1.dll.<BR> \
<BR>How do i do this. what should be done, any help is aprreciated.<BR> \
<BR>regards,<BR>Vijay.A<BR></DIV><p> <hr size=1>Find your next car at <a \
href="http://autos.yahoo.ca"><b>Yahoo! Canada Autos</b></a>
_______________________________________________
kde-cygwin mailing list
kde-cygwin@kde.org
https://mail.kde.org/mailman/listinfo/kde-cygwin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic