Csound Csound-dev Csound-tekno Search About

[Cs-dev] liblo woes

Date2008-02-18 05:00
FromMichael Gogins
Subject[Cs-dev] liblo woes
I am not succeeding in compiling liblo for use by MSVC.

Or rather, I did succeed in compiling liblo.dll with MinGW (by writing my own SConstruct for it) and then producing an export lib for the DLL using Microsoft's lib. So far so good. But then the liblo headers depend upon stdint.h which does not exist for MSVC. OK, I got round that with some #defines. Then there are dozens of macros which don't work on MSVC because its C preprocessor is a bit different... the guy wrote liblo in a TOTALLY GNU-ish, non-portable way. I don't like editing other people's sources like this.

I will try doing a bit more, however. If the sources get too different I'll just pack them up as a separate new lib in Csound.

Regards,
Mike



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-02-18 05:23
FromErik de Castro Lopo
SubjectRe: [Cs-dev] liblo woes
Michael Gogins wrote:

> But then the liblo headers depend upon stdint.h which does not
> exist for MSVC.

The  header is part of the 1999 ISO C standard. I think
in 2008, 8 years after the standard was ratified, any compiler
which doesn't support the vast majority of the new features should
be considered broken.

> Then there are dozens of macros which don't work on MSVC because
> its C preprocessor is a bit different... the guy wrote liblo in a
> TOTALLY GNU-ish, non-portable way.

What version are you looking at? I was looking at version 0.23 just
the other day and it looked like standard C99 to me. Looking at it
again, I see that in lo/lo_macros.h the author is using C99 variadic
macros. This is *in the standard* and has nothing to do with GNU.

Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"Reality is just a crutch for people that can't handle CyberSpace!!"
- Hank Duderstadt

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-02-18 06:30
FromErik de Castro Lopo
SubjectRe: [Cs-dev] liblo woes
Michael Gogins wrote:

> But then the liblo headers depend upon stdint.h which does not
> exist for MSVC.

The  header is part of the 1999 ISO C standard. I think
in 2008, 8 years after the standard was ratified, any compiler
which doesn't support the vast majority of the new features should
be considered broken.

> Then there are dozens of macros which don't work on MSVC because
> its C preprocessor is a bit different... the guy wrote liblo in a
> TOTALLY GNU-ish, non-portable way.

What version are you looking at? I was looking at version 0.23 just
the other day and it looked like standard C99 to me. Looking at it
again, I see that in lo/lo_macros.h the author is using C99 variadic
macros. This is *in the standard* and has nothing to do with GNU.

Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"Reality is just a crutch for people that can't handle CyberSpace!!"
- Hank Duderstadt

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net