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

Unable to compile examples as instructed with 'nake'. #479

Open
andrewgohlk opened this issue May 29, 2021 · 0 comments
Open

Unable to compile examples as instructed with 'nake'. #479

andrewgohlk opened this issue May 29, 2021 · 0 comments

Comments

@andrewgohlk
Copy link

Tried to compile the examples but hit exceptions:

$ nake
Compiling nakefile...
No task specified, running default task defined by nakefile.
Warning: icon was not found: build\windows\res\MyGame.ico
Hint: used config file 'C:\msys64\mingw64\etc\nim\nim.cfg' [Conf]
Hint: used config file 'C:\msys64\mingw64\etc\nim\config.nims' [Conf]
...................................................................................................
C:\msys64\home\ANDREWG\nimx\nimx\private\font\fontconfig.nim(3, 20) Warning: imported and not used: 'strutils' [UnusedImport]
C:\msys64\home\ANDREWG\nimx\nimx\private\font\fontconfig.nim(3, 12) Warning: imported and not used: 'dynlib' [UnusedImport]
..............
C:\msys64\home\ANDREWG\nimx\nimx\layout_vars.nim(19, 32) Error: type mismatch: got <Variable>
but expected one of:
proc newExpression(constant: float = 0): Expression
  first type mismatch at position: 1
  required type for constant: float
  but expression 'left(phs)' is of type: Variable
proc newExpression(term: Term; constant: float = 0): Expression
  first type mismatch at position: 1
  required type for term: Term
  but expression 'left(phs)' is of type: Variable
proc newExpression(terms: seq[Term]; constant: float = 0): Expression
  first type mismatch at position: 1
  required type for terms: seq[Term]
  but expression 'left(phs)' is of type: Variable

expression: newExpression(left(phs))

Using MINGW64, Nim Compiler Version 1.4.6 [Windows: amd64]

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