Now that I've had the time to look into it I've figured out what it was. I'm compiling with -DWIN32_LEAN_AND_MEAN which causes #include <ole2.h> to be excluded from Windows.h (amonst other things).

ole2.h #includes <objbase.h> and objbase.h #includes <stdlib.h>

So presumably noone else has compiled with -DWIN32_LEAN_AND_MEAN.

I think the relevant files should include stdlib.h since they depend on symbols defined in that header but at least I can just remove that flag.

FWIW, these are the errors I got:


d:\live\liveMedia\RTSPCommon.cpp(46) : error C3861: 'strtol': identifier not found d:\live\UsageEnvironment\UsageEnvironment.cpp(43) : error C3861: 'abort': identifier not found d:\live\UsageEnvironment\UsageEnvironment.cpp(62) : error C3861: 'abort': identifier not found d:\live\testProgs\testMP3Streamer.cpp(156) : error C3861: 'exit': identifier not found
... plus additional testProgs/*, I haven't compiled all of them.


On 03/16/2015 12:08 PM, Ross Finlayson wrote:
Sorry, the actual message is "identifier not found", "undefined symbol" was a product of my faulty memory.

OK, please post the *exact* error messages that you see when compiling each specific file (and note which file is being compiled in each case).

(If the error messages instead occur during *linking*, then that means that you need to add some *library* to the link line, not #include any header file anywhere.)



I understand that noone else has seen this problem, but it's faulty logic to suggest that these files don't need to include stdlib.h.. if it's compiling it just means that stdlib.h has been included by another header.

If file A #includes file B, and file B #includes "stdlib.h", and file A compiles OK, then file A most certainly does *not* also need to #include "stdlib.h".

(Once again, nobody else is reporting the issue that you claim to be seeing (and unfortunately you're far from the only person who's still using Windows :-).)


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/



_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to