Re: how to use dll created by cygwin in MS Visual C++?

2004-03-21 Thread Alexander Gottwald
wxWindows_study wrote:

 But I failed to use the test_dll.dll in MS Visual C++?

This question is not specific to the cygwin xserver and should go to the
[EMAIL PROTECTED] mailinglist. But I think this question is asked quite
often so I'd advice you to look into the FAQ and the other documentation
on http://www.cygwin.com.

bye
ago
-- 
 [EMAIL PROTECTED]
 http://www.gotti.org   ICQ: 126018723


Re: how to use dll created by cygwin in MS Visual C++?

2004-03-21 Thread Harold L Hunt II
This has nothing to do with running the X Window System on Cygwin.

Try another mailing list.

Harold

wxWindows_study wrote:

 I follow cygwin's user guide,create a dll as following:
 
 //
 // this the dll file :@test_dll.c
 //created by songyewen 2004/03/21
 //
 
 #include stdio.h
 
 int show_hello()
 {
 printf(this is the testing string from cygwin apps's dll file\n);
 return 0;
 }
 
 //--
 gcc -c test_dll.c
 gcc -shared -o test_dll.dll test_dll.o
 
 so I get the test_dll.dll
 
 //--
 
 //
 //this file is a demo for testing dll in cygwin apps
 [EMAIL PROTECTED]
 //created by songyewen 2004/03/21
 //
 #include stdio.h
 int main()
 {
 show_hello();
 }
 
 
 //-
 gcc -o test_main.c test_main.exe -L./ -ltest_dll
 so I get test_main.exe and can run test_main.exe successfully!
 
 
 But I failed to use the test_dll.dll in MS Visual C++?
 
 Who can help me?
 
 thanks in advance!!


how to use dll created by cygwin in MS Visual C++?

2004-03-20 Thread wxWindows_study
I follow cygwin's user guide,create a dll as following:

//
// this the dll file :@test_dll.c
//created by songyewen 2004/03/21
//

#include stdio.h

int show_hello()
{
printf(this is the testing string from cygwin apps's dll file\n);
return 0;
}

//--
gcc -c test_dll.c
gcc -shared -o test_dll.dll test_dll.o

so I get the test_dll.dll

//--

//
//this file is a demo for testing dll in cygwin apps
[EMAIL PROTECTED]
//created by songyewen 2004/03/21
//
#include stdio.h
int main()
{
show_hello();
}


//-
gcc -o test_main.c test_main.exe -L./ -ltest_dll
so I get test_main.exe and can run test_main.exe successfully!


But I failed to use the test_dll.dll in MS Visual C++?

Who can help me?

thanks in advance!!