-
Notifications
You must be signed in to change notification settings - Fork 11
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
Cannot compile examples/genuimacro/threads.nim #24
Comments
Not sure why the cfg file doesn't work, but the |
|
Hmm, that's weird. Running the exact same thing works just fine for me. Might be a difference between the OSX and Linux versions of WxWidgets? This is related to your other issue with the strings by the way. |
While I've added macOS installation/usage instructions to my fork of My setup:
|
The C++ compiler rejects implicit conversions from @AllenDang here's a solution that takes advantage of Nim's emit pragma (embedding C++ code):
Note: the above works for ASCII, but doesn't work for Unicode characters.
|
Yes, this is a Clang vs. GCC thing where Clang is a bit more strict with const pointers. I tried to look around for some flag you could pass to Clang to make it behave more like GCC, but to no avail. I think a solution similar to what you're doing there is the closest we can get to a proper solution. |
@joubertnel .emit is a good solution! |
Found a solution for unicode: #23 (comment) |
I am able to compile using |
I cloned this repo. cd to exmaples/genuimacro/threads.nim, invoke
nim cpp -r threads.nim
, and got following error.I googled the reason, and confirmed that nim.cfg has
--threads:on
.I've tried to add --threads:on directly in compiler option like this,
nim cpp -r threads.nim --threads:on
, error remains.My os is MacOS big sur.
The text was updated successfully, but these errors were encountered: