Re: [UCI-Devel] Problems compiling libuci on VC6++
Cyrius <[email protected]>
| Newsgroups | gmane.comp.video.vdubmod.devel,gmane.comp.video.uci.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi --- [email protected] wrote: > First off, sorry for my lateness in replying to > this.. as I posted to the UCI > list a couple of days ago, my mail server had a hard > disk crash which took me > several days to recover from, and I haven't had much > time to wade through my > back mail this week, so I'm running rather behind on > things.. > > Please don't let my late reply be misconstrued as > lack of interest, though. I > am very interested in the possibility of using UCI > in Vdub, and in windows in > general, and am eager to help anybody interested in > working on such things. Don't worry, I didn't. When ChritianHJW sent his mail I hadn't solved properly all the problems anyway ;) > Humph.. here I specifically used that because I'd > seen on other lists that it > worked better than the alternative (gnu-style) > "field: value" syntax for some > compilers (I'd thought including MSVC++, but > apparently not). > > So do I take it that there is no way to do static > initializers for unions in > VC++ at all? That would be a problem. What I could read about this is that in current specs (followed by all compilers) you can only initialize the first parameter of an union. C99 specs extended this the way you used it in uci.h > Sigh.. yeah.. I suppose it's possible we could use > C++-isms for VC++, but I'd > like to avoid that sort of thing if possible. I > suppose I could just rewrite > the union initializers as casts, which should work, > and doesn't require C++, > but is an ugly hack and could theoretically produce > some broken results if a C > implementation does unions in unusual ways. > Alternately, it might be worth > giving up on the idea of unions altogether, as has > been suggested for other > reasons. I'll put some thought into this and see > what comes out.. Actually you have to use C++ if you don't want to modify too much the code, and keep the macros you use (in another way however) to initialize the union. In C you have to use assignment for unions, which means you have to use function instead of macros to initialize the union. > I'd be very interested in seeing the changes you had > to make to make things > compile in VC++. If you'd be willing to send them > to me, I can try to > integrate them back into the main libuci code so > that it'll work better in > future. I just sent you a mail with the files I use, and a description of the changes I made (and why). Hope this will help you :) __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf