Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile with Debug configuration #5

Closed
ghost opened this issue Sep 26, 2014 · 5 comments
Closed

Compile with Debug configuration #5

ghost opened this issue Sep 26, 2014 · 5 comments

Comments

@ghost
Copy link

ghost commented Sep 26, 2014

I managed to compile VS2008 source in debug, after i fixed a vsprintf error.
I made this in zutil.h:
http://pastebin.com/9hYWbVLQ

The compile process is going fine with this fix, but i can't start the game with the new debug binaries:
http://pastebin.com/DTW8uUtm

Did someone managed to compile stuff properly in debug, or did i make a mistake with my fix, which causes this ugly error?

@nitrocaster
Copy link
Member

Check this out: OpenXRay/xray-15@5b15635

I have no idea how did it work before. Do you compile with stlport?

@ghost
Copy link
Author

ghost commented Sep 26, 2014

Thanks!
I use the MSVC9 STL, i didn't modify anything else just zutil.h yet.

After i implemented
OpenXRay/xray-15@5b15635
and all of these fixes too:
OpenXRay/xray-15@7de0301
I get this when compiling xrCore.dll:

xrDebugNew.obj : error LNK2019: unresolved external symbol "unsigned int __cdecl mem_usage_impl(void *,unsigned int *,unsigned int *)" (?mem_usage_impl@@YAIPAXPAI1@Z) referenced in function "int __cdecl out_of_memory_handler(unsigned int)" (?out_of_memory_handler@@yahi@Z)
......\binaries\xrCore.dll : fatal error LNK1120: 1 unresolved externals

BTW @nitrocaster, is your VS2013 COP repo already out there? I assume you already did fix these errors in VS2013.

@nitrocaster
Copy link
Member

I get this when compiling xrCore.dll:

Just read logs. mem_usage_impl is declared, but not defined (since you removed its definition). Go to out_of_memory_handler and replace mem_usage_impl with Memory.mem_usage.

is your VS2013 COP repo already out there?

Yes it is.

@ghost
Copy link
Author

ghost commented Sep 26, 2014

Thanks again, well, i guess i have a lot to learn.

Awesome, I'll try out your VS2013 stuff, instead of messing with VS2008.

@ghost
Copy link
Author

ghost commented Sep 27, 2014

Nitro, your CS memory handler fixes worked like charm in COP too.
I managed to compile VS2008 source with debug config, which actually works on all renderers. It's awesome. :)
Thread closed.

@ghost ghost closed this as completed Sep 27, 2014
Xottab-DUTY pushed a commit that referenced this issue Oct 10, 2018
Fix arguments  that are passed to luabind
eagleivg added a commit to eagleivg/xray-16 that referenced this issue Jul 3, 2020
Format fix OpenXRay#5

Co-authored-by: Xottab_DUTY <Xottab-DUTY@users.noreply.github.com>
ChugunovRoman pushed a commit that referenced this issue Nov 22, 2023
ChugunovRoman pushed a commit that referenced this issue Nov 22, 2023
ChugunovRoman pushed a commit that referenced this issue Nov 22, 2023
ChugunovRoman pushed a commit that referenced this issue Nov 22, 2023
ChugunovRoman pushed a commit that referenced this issue Nov 22, 2023
ChugunovRoman pushed a commit that referenced this issue Nov 22, 2023
ChugunovRoman pushed a commit that referenced this issue Nov 22, 2023
ChugunovRoman pushed a commit that referenced this issue Nov 22, 2023
ChugunovRoman pushed a commit that referenced this issue Nov 22, 2023
ChugunovRoman pushed a commit that referenced this issue Nov 22, 2023
ChugunovRoman pushed a commit that referenced this issue Nov 22, 2023
ChugunovRoman pushed a commit that referenced this issue Nov 22, 2023
ChugunovRoman added a commit that referenced this issue Nov 22, 2023
feat: add the lua_extensions submodule
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants