delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Chandra Sekhar <leo12_chandu AT yahoo DOT com> |
Subject: | cygwin + JNI problem with sockets |
Date: | Thu, 19 Oct 2006 04:17:15 +0000 (UTC) |
Lines: | 23 |
Message-ID: | <loom.20061019T060345-494@post.gmane.org> |
Mime-Version: | 1.0 |
User-Agent: | Loom/3.14 (http://gmane.org/) |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hi everyone, I am a student trying to create a dll of a socket program in cygwin using -mno- cygwin as following (after compilation). "gcc -mno-cygwin -shared -o udpServer0.dll udpServer0.o" but it throws the following "Errors". udpServer0.o:udpServer0.c:(.text+0x41): undefined reference to `_htonl' udpServer0.o:udpServer0.c:(.text+0x50): undefined reference to `_htons' udpServer0.o:udpServer0.c:(.text+0x70): undefined reference to `_socket' udpServer0.o:udpServer0.c:(.text+0x8d): undefined reference to `_bind' udpServer0.o:udpServer0.c:(.text+0xb2): undefined reference to `_recv' collect2: ld returned 1 exit status if i create a dll without the "-mno-cygwin" option and call the function in the JNI java program, it doesnt execute (doesnt respond, goes to infinite loop). But with "-mno-cygwin" option the other programs (other than socket programs), they work just fine when called from Java using JNI. Can anyone throw in some ideas and suggestions as to where the problem could be or the solution if you know. I can post the udpServer0.c if you want me to. Thank you in advance, Chandra Sekhar. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |