ZenHAX https://zenhax.com/ |
|
Help to compile a c code for the ea HUFF compression https://zenhax.com/viewtopic.php?f=11&t=17892 |
Page 1 of 1 |
Author: | Alpha1001 [ Tue Jan 17, 2023 11:55 am ] | ||
Post subject: | Help to compile a c code for the ea HUFF compression | ||
Hi aluigi, I've seen the quickbms source and I managed to use the c code for JDLZ algorithm in my tool, but the c code for HUFF algorithm won't compile. There are many warnings in Devc++. I have an own project to create tools for the Need for Speed games (PS2 version), and I'm using the quickbms source to help me. Link with my attemp to compile this code using the Devc++ and a picture showing the warnings: https://drive.google.com/file/d/1G9EiQn ... sp=sharing Thanks in advance!
|
Author: | atom0s [ Wed Jan 18, 2023 12:31 am ] |
Post subject: | Re: Help to compile a c code for the ea HUFF compression |
Error shows that there is a missing function call being made: msfastcall_call Looking at the code, it appears that the header that probably includes that call is commented out: Code: //#include "calling_conventions.h" However, that header isn't included with the code you posted, so you'll have to find where its from and add it to the project or at least copy in the function that is missing. If it's from aluigi's stuff, then the header it may be from is: https://aluigi.altervista.org/mytoolz/c ... ventions.h |
Author: | Alpha1001 [ Wed Jan 18, 2023 1:52 pm ] |
Post subject: | Re: Help to compile a c code for the ea HUFF compression |
Hi, I've seen your personal site here, it's nice! Really is missing the calling_conventions library, I will add this library and try to compile again and I'll post here the results. Thanks! |
Author: | Alpha1001 [ Thu Jan 19, 2023 10:54 am ] |
Post subject: | Re: Help to compile a c code for the ea HUFF compression |
Hi ato0ms, I've inserted the "calling_conventiosn.h" in the source and some warnings disappeared, now there is only the warnings below and I can't fix it: [Warning] cast from pointer to integer of different size [-Wpointer-to-int-cast] [Note] in expansion of macro 'PATCHIT' I believe that solve this warnings above will allow to compile the source. One more time I would like to ask your help. Link with the new source: https://drive.google.com/file/d/12qSm3P ... sp=sharing The password is "huff" |
Author: | Alpha1001 [ Thu Jan 19, 2023 4:24 pm ] |
Post subject: | Re: Help to compile a c code for the ea HUFF compression |
Hi atom0s, I got it to compile now! Finally, that code just compile in the 32 bits mode, thank you very much by help until here. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |