Problems compiling libuci on VC6++

"ChristianHJW" <[email protected]>
Newsgroups gmane.comp.video.uci.devel,gmane.comp.video.vdubmod.devel
Message-ID <[email protected]>
http://www.corecodec.com/modules.php?op=modload&name=phpBB2&file=viewtopic&t
=168&start=15

Suiryc wrote :

[quote]
I had a look at UCI CVS and some changes will have to be made for the code
being useable under VC++ 6 (and other compilers I think).

According to the problems I encountered and what I could find on the net
seems like foogod uses GCC to compile (or similar) because there are some
features that cannot be used in VC++ 6 (even maybe under VC++.NET, didn't
tested).

What I am talking about here concerns the uci_param_value union, and the
macros defined to initialize / generate constants out of it.
foogod uses a {.field = value} trick that, as far as I could read, is
defined in C99 specs (standard C specs). But apparently there is not that
much compiler that are C99 compliant (they are just C89 compliant) : even
GCC (that can handle the trick thought) isn't 100% C99 compliant.

A workaround is to define constructors for the union ... but of course in
this case we are not anymore in C but C++ ... (which makes me have to force
casts  ).

And then I learn that VC++ isn't POSIX, which makes that the
platform_linux.c has to be reworked too (half of the functions and
structures used are not defined in VC++).

Finally after a *lot* of hack I could use the files ...[/quote]


Alex, you care commenting ?? Please copy the new list
[email protected]

--
Christian

Sites : http://mcf.sourceforge.net
http://sf.net/projects/mcf
MCF mailing lists : news://news.gmane.org
gmane.comp.video.mcf.general
gmane.comp.video.mcf.devel
gmane.comp.video.mcf.mplayer
gmane.comp.video.mcf.announce
gmane.comp.video.mcf.mpc
Soon :  www.corecodec.com
icon_wink.gif (image/gif, 170 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.