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

Installation Instructions? [Unresolved External Symbol] #18

Open
5332Team opened this issue Jan 7, 2018 · 3 comments
Open

Installation Instructions? [Unresolved External Symbol] #18

5332Team opened this issue Jan 7, 2018 · 3 comments

Comments

@5332Team
Copy link

5332Team commented Jan 7, 2018

Hi. I've implemented some of your FC code into my project. Your project sounds REALLY cool, and I can't wait to get it working.

My problem is that when I compile I get "unresolved external symbol" errors, in regards to things like "FC_CreateFont" and "FC_Draw." This could be because I didn't install the library correctly. The library files have no .LIB to link to or DLL to use. So, the only way I could think of installing the library was #including the FC header file that came in the download. That's all I did to install the library, because I don't know how to link it without a .LIB or DLL.

I'd love if you could provide some proper install instructions, or a fix to this error! Thanks!

@grimfang4
Copy link
Owner

Hey, no problem! If they are FC_* symbols missing, they are defined in SDL_FontCache.c. If you add that file to be compiled with your project, that should take care of those references.

I haven’t released a .lib build, but if you prefer that, you can create a new library solution/project that compiles SDL_FontCache.c into lib and dll files.

@5332Team
Copy link
Author

5332Team commented Jan 7, 2018

Thanks!
Sorry if this is a stupid question, but how do I add the ".c" file to be compiled with my project?
My project is C++, and done in Visual Studio 2017

@Hexlord
Copy link

Hexlord commented Jan 8, 2018

@5332Team You probably find them in solution explorer using "Show all files" filter and right click into "Include in project"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants