compiling large files
I was trying to compile some OpenGL stuff with the Microsoft command line compiler, and I got the following error:
legotest.h(65536) : warning C4049: compiler limit : terminating line
number emission
Compiler limit for line number is 65535
I had a file with more than 65535 lines involved. Anyone know what the implications of this are? It didn't seem like a fatal error as the compiler kept working, but it started using up all my RAM and going berserk, so I had to abort.
Mike C.
http://www.coolgroups.com/zoomer/
Why don't you just divide the file into several smaller files and compile those together?
OpenGL drawing code generated by my program at http://www.coolgroups.com/3ds2gl/
Mike C.
http://www.coolgroups.com/zoomer/
Mike C.
http://www.coolgroups.com/zoomer/
I think its much simpler to make a file loader that loads the .3ds file as an object such as 3DSLoader. What benefits are there to writing the code out manually? Seems like this would only make things more complicated now your compiled file is now as big as the media files.
Quote:Original post by mike74
Where can I find 3DSLoader?
Mike C.
http://www.coolgroups.com/zoomer/
You obviously know the 3ds file format to make a 3ds 2 OpenGL code program. What I ment was you could make your own class object to load data at runtime. Since you asked though there is one I know of click here scroll down and you'll see a 3ds file loader.
You write it yourself, like you did with your program. Just load the data at runtime instead of hardcoding it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement