We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I compile a simple Hello World example for an embedded AVR (standalone) the compile fails with a type mismatch error in system.nim (299, 46).
This can be reproduced on Windows using the following source files:
U:>type hello.nim
echo "Hello, World!"
U:>type panicoverride.nim
proc printf(frmt: cstring) {.varargs, importc, header: "<stdio.h>", cdecl.} proc exit(code: int) {.importc, header: "<stdlib.h>", cdecl.} {.push stack_trace: off, profiler:off.} proc rawoutput(s: string) = printf("%s\n", s) proc panic(s: string) = rawoutput(s) exit(1) {.pop.}
U:>nim --version Nim Compiler Version 0.10.2 (2014-12-30) [Windows: i386] Copyright (c) 2006-2014 by Andreas Rumpf
U:>nim c -c --cpu:avr --os:standalone --deadCodeElim:on hello.nim c:\dev\nim\config\nim.cfg(45, 2) Hint: added path: 'C:\Users\dwfntfoden.babel\p kgs' [Path] c:\dev\nim\config\nim.cfg(46, 2) Hint: added path: 'C:\Users\dwfntfoden.nimble pkgs' [Path] Hint: used config file 'c:\dev\Nim\config\nim.cfg' [Conf] Hint: system [Processing] c:\dev\nim\lib\system.nim(299, 46) Error: type mismatch
The text was updated successfully, but these errors were encountered:
Who said 'echo' works for os:standalone?
Sorry, something went wrong.
f6bdda2
fixes #1964 properly
be1441a
No branches or pull requests
When I compile a simple Hello World example for an embedded AVR (standalone) the compile fails with a type mismatch error in system.nim (299, 46).
This can be reproduced on Windows using the following source files:
U:>type hello.nim
U:>type panicoverride.nim
U:>nim --version
Nim Compiler Version 0.10.2 (2014-12-30) [Windows: i386]
Copyright (c) 2006-2014 by Andreas Rumpf
U:>nim c -c --cpu:avr --os:standalone --deadCodeElim:on hello.nim
c:\dev\nim\config\nim.cfg(45, 2) Hint: added path: 'C:\Users\dwfntfoden.babel\p
kgs' [Path]
c:\dev\nim\config\nim.cfg(46, 2) Hint: added path: 'C:\Users\dwfntfoden.nimble
pkgs' [Path]
Hint: used config file 'c:\dev\Nim\config\nim.cfg' [Conf]
Hint: system [Processing]
c:\dev\nim\lib\system.nim(299, 46) Error: type mismatch
The text was updated successfully, but these errors were encountered: