X-Spam-Check-By: sourceware.org Message-ID: <45EBEED3.6020908@alkit.se> Date: Mon, 05 Mar 2007 11:20:03 +0100 From: Jonas Jalminger User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Going crazy trying to compile dll Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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, I have tries various solutions but nothing works. The problem is that dlopen() never returns when called. These are built in eclipse using managed projects where the dll is chosen as shared library project. If I misspell the dll-name, dlopen() returns as it should with an error saying "not found". Please, help! /Jonas My main program looks as follows: #include #include #include #include #define PLUGINDIR "/plugins" int main(int argc, char **argv) { void *fileHandle; char path[] = "./plugins/simplelibrary.dll"; char ans[500]; fileHandle = dlopen(path, RTLD_GLOBAL); if (fileHandle == NULL) { strcpy(ans, dlerror()); printf("%s", ans); } return 0; } The dll code is: void konto(int japp) { } -- 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/