-
Notifications
You must be signed in to change notification settings - Fork 167
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
link: Filetype of hello.c.obj unrecognized #2223
Comments
Paging @desertkun - I've never used cmake with z88dk |
You have to explicitly specify a toolchain: https://github.com/z88dk/z88dk/wiki/CMake
Otherwise It would not use z88dk at all and go for regular gcc or whatever you have on your system. |
See the following end-to-end example: https://github.com/speccytools/z88dk-gdb-ide-test |
I am using a toolchain for zcc, when i use https://github.com/RodrigoDornelles/3bc-lang/blob/develop-wip-wip/cmake/toolchain/zcc.cmake |
using cmakecommands
full outputs
using makefilecommandcopying last command cmake in the terminal.
fulloutputs
|
To build files that end win non-c extention, you need to additionally specify |
The error is coming from zcc - its not recognising .obj files as object files. So, the trick here is to get cmake to generate .o files. |
I believe the correct solution is to force CMake to generate
Extensions.cmake:
That's what the "standard" toolchain is doing. |
I think this one has been sorted with both zcc handling .obj files and the cmake recipe above. |
the problem
I don't know what it could be, it's compiled correctly, but fails when linking.
I recommend testing with my own project, I'm working on the develop-wip-wip branch.
am using modified version of zcc cmake toolchain.
https://github.com/RodrigoDornelles/3bc-lang
how to build 3bc
when i use cmake & makefile
error
when in run manually command
error
hexdump
The text was updated successfully, but these errors were encountered: