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

wont compile because #include guard resued #38

Closed
mgieseki opened this issue Jul 20, 2014 · 2 comments
Closed

wont compile because #include guard resued #38

mgieseki opened this issue Jul 20, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@mgieseki
Copy link
Owner

The #include guard FONTMAP_H is used both in dvisvgm/src/FontMap.h and kpathsea/fontmap.h. Thatswhy FileFinder.cpp won't compile under linux (it can't see the definition of FontMap::Entry). I have changed it to DIVSVGM_FONTMAP_H, and it works now.

Launchpad Details: #LP1258781 V F - 2013-12-07 16:18:56 +0100

@mgieseki
Copy link
Owner Author

Thanks for reporting this issue. However, I can't reproduce it. The sources compile fine on all Linux systems I've tested so far. After grepping through the kpathsea headers, I couldn't find a header file that includes kpathsea/fontmap.h. They are only used by the kpathsea C files. Thus, there shouldn't be a conflict.
What Linux system do you use and what version of kpathsea is installed there?

Launchpad Details: #LPC Martin Gieseking - 2013-12-09 17:39:00 +0100

@mgieseki
Copy link
Owner Author

I'm on Ubuntu 12.04, I have installed kpathsea through Synaptic.
Package name: libkpathsea-dev
Version: 2009-11ubuntu2

I downloaded dvisvgm sources from the download page (http://dvisvgm.sourceforge.net/Downloads), so not using the latest commit, could it be the problem?

dvisvgm-1.5.1/src/FileFinder.cpp includes <kpathsea/kpathsea.h> (/usr/include/kpathsea/kpathsea.h), which does have an

#include <kpathsea/fontmap.h>

line on my system.

Launchpad Details: #LPC V F - 2013-12-09 22:07:56 +0100

@mgieseki mgieseki added the bug label Jul 20, 2014
@mgieseki mgieseki self-assigned this Jul 20, 2014
@mgieseki mgieseki removed the medium label Jul 20, 2014
@mgieseki mgieseki added this to the 1.5.2 milestone Jul 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant