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

MinGW lzz errors #26

Open
xKamuna opened this issue May 2, 2017 · 0 comments
Open

MinGW lzz errors #26

xKamuna opened this issue May 2, 2017 · 0 comments

Comments

@xKamuna
Copy link

xKamuna commented May 2, 2017

There are a few errors in the .lzz files when building on mingw-w64, I'm not sure if they're the same with the normal mingw:
Change file.lzz

char const * fullname = loc.getFullname ();

to

std::string fullname = loc.getFullname ();
std::replace(fullname.begin(), fullname.end(), '\\', '/');

Remove in file_op.lzz

#include <util/throw_exception.h>

(For BasilCC) Add

#include <sys/types.h>

to all #hdr...#end directives (make one if it doesn't exist) in files where size_t is used.

There are also some issues I had with the make.include in the maketools directory and building, but those just have to do with path inconsistencies, being on Windows/MSYS2 instead of Linux while building, Here are the things I changed for reference:

Remove the first variable from BUILDDIR (ROOT) and change it to an absolute Windows path (or set up a new variable for it).

Add missing libraries and includes to the default library/include path.

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

1 participant