henke37
2nd September 2007 12:09 UTC
Compile problems with AVS
I am trying to compile AVS myself, but I can not seem to fix a compile error in the build.
pastebin.ca/678001
I need to get these errors resolved so that I can continue with my project to integrate AVS in StepMania.
henke37
9th September 2007 10:39 UTC
I suppose that I should say that I fixed the compile errors. Now I got these nice runtime errors.
Yathosho
9th September 2007 10:42 UTC
why not post how you solved it, might be useful for others aswell (in future?)
DrO
9th September 2007 13:42 UTC
building it in debug mode (as you're building) is most likely the cause of those issues since the project is only properly setup to be built under vc6 in release mode
-daz
henke37
11th September 2007 07:18 UTC
Actually, you are wrong there, it compiles just fine in debug mode. It sure lacks error handling in a lot of places, especially with GlobalAlloc failing(I need to work on that).
The fixes was reasonably easy:
- Rename the strcomp family of functions as the compiler wants them
- add a few explit casts to make the function calls non ambiguous.
- add a few missed datatypes in some declarations (static to static int for examlpe)
- Fix the function pointers that has optional declared parameters, that is a feature not in the c++ standard. Note, this means adjusting both where the pointer is declared and where those optional parameters would be automatically inserted. Missing the later step caused a great deal of trouble for me.
- Fix the declaration of the function pointers in that lextab structure, they are missing the parameter list in the declaration.
- Fix some misc unused parameter/unused local var warnings if you compile with the highest warning level.
- Add emms instructions where the compiler thinks they are needed.