Csound Csound-dev Csound-tekno Search About

[Cs-dev] Still seeking working mingw

Date2005-07-02 11:23
Fromjpff@codemist.co.uk
Subject[Cs-dev] Still seeking working mingw
I think my current stumbling block is that i can force the compilation
of the library, (although the makefile is broken) but it needs to load
a dll when used, and i cannot see how to make the linker search/load a
dll file.
  I have not seen any helpful advice yet on how to use minGW.  Of
course I can run ./configure but the code in question does not have a
configure, only an autogen.sh and that requires all kinds on stuff
which does not seem to install.

So current question is how to link against a dll?

==John ffitch


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-02 11:39
FromIstvan Varga
SubjectRe: [Cs-dev] Still seeking working mingw
jpff@codemist.co.uk wrote:

> So current question is how to link against a dll?

I think you can link directly against a DLL if you specify
the name of the DLL file (possibly with path if it is not found)
instead of using -l (which would look for a .a file), something
like this:

gcc -o foo.exe bar.o D:/MinGW/lib/blah.dll -lm


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-02 12:48
Fromjpff@codemist.co.uk
SubjectRe: [Cs-dev] Still seeking working mingw
That was of course the first thing I tried!  It says that the format
of the file is not recognised.

It does however occur to me that the unknown names look like C++-munged
names, while the code is all C.  Could be some semi-intelligent system
has decided that C++ is prettier....

Will check that next

==John ffitch


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-02 17:58
Fromjpff@codemist.co.uk
SubjectRe: [Cs-dev] Still seeking working mingw
I think it is time for someone else to try this.  I have found a DLL
which the compiler does not reject but i am still stuck on undefined
references.  There seem to be in two groups.

1: related to 64bit ints I have many references to htonl@4
2: Winsock related, with WSAStartup@8, WSALastrError@0 and sendto@24

The @4/@8 etc looks like the size of the arguments, but they are not
named in the DLL like that.

This is the liblo sources with windows bits.  Perhaps it requires
gcc4?  Strange that it gives no syntax errors.

==John ffitch


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-02 18:36
FromIstvan Varga
SubjectRe: [Cs-dev] Still seeking working mingw
jpff@codemist.co.uk wrote:

> 1: related to 64bit ints I have many references to htonl@4

Try commenting out these two lines in lo/lo_endian.h and
recompiling liblo:

#define lo_swap16(x) htons(x)

#define lo_swap32(x) htonl(x)

> 2: Winsock related, with WSAStartup@8

This is defined in ws2_32.dll, you need to link -lws2_32 (should
be included with MinGW). WSAGetLastError@0

 > WSALastrError@0

I could not find this function. The most similar one is
WSAGetLastError@0, also defined in ws2_32.

 > sendto@24

-lws2_32 again.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-02 19:21
Fromjpff@codemist.co.uk
SubjectRe: [Cs-dev] Still seeking working mingw
Thank you!  I now have a Windows OSC library, so it theory the OSC
code should run on the windows port as well.  As soon as the CVS
responds I will place the liblo.a library for Windows in the
windows_dlls directory.  Perhaps someone with more windows experience
than I can try to build/test
==John ffitch


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net