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

not inline code in crn_decomp.h #16

Open
GoogleCodeExporter opened this issue Apr 15, 2015 · 2 comments
Open

not inline code in crn_decomp.h #16

GoogleCodeExporter opened this issue Apr 15, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link


error LNK2005: "bool __cdecl crnd::crnd_validate_file(void const *,unsigned 
int,struct crnd::crn_file_info *)" 
(?crnd_validate_file@crnd@@YA_NPBXIPAUcrn_file_info@1@@Z) already defined

error LNK2005: "bool __cdecl crnd::crnd_get_texture_info(void const *,unsigned 
int,struct crnd::crn_texture_info *)" 
(?crnd_get_texture_info@crnd@@YA_NPBXIPAUcrn_texture_info@1@@Z) already defined

and more more more

if I include this file in many cpp


Original issue reported on code.google.com by [email protected] on 30 Apr 2014 at 12:48

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

I believe this not an error in the library -- the intended usage for 
crn_decomp.h is to include it in a single source file, and then #define 
CRND_HEADER_FILE_ONLY before including it in any other cpp files. This is 
because crn_decomp.h contains both the implementation and the header in one 
file.

Original comment by [email protected] on 25 Feb 2015 at 11:08

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

1 participant