-
Notifications
You must be signed in to change notification settings - Fork 8
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
Building the C library and executable on Windows fails #21
Comments
I am getting the same problem building the |
No luck either through the generated
Still getting unresolved symbols when linking |
I'm not that familiar with building software on Windows. @kmsquire may have some advice, but my only suggestion would be to try to build it in Cygwin |
I saw that some similar issues were addressed/discussed in PR #18; within the comments @kmsquire mentions that Looking through the
|
We have CI set up on Windows: I just reran it on Julia 1.7, and it passed:
suggests that it doesn't have |
Indeed, However, as I described above (and as @theweaklink corroborates) even bypassing the makefile and invoking either GCC or MSVC directly also fails during the compilation of the executable. Is using Cygwin a hard requirement? |
Unfortunately I don't have enough experience on windows to say. Maybe @staticfloat might be able to help? |
To bypass this issue I wrote my own, much simpler, Makefile examples without any Unix shell scripting. It's in this EmbedJuliaInC repository. |
The Windows build of
CG
fails, both when using the includedmakefile
s and when runningbuild.jl
directly from Julia.Trying to use the top-level
makefile
(libcg/makefile
) withmingw32-make
gives the following output:For completeness, I also tried to build only
CG
using the top-levelmakefile
which gave the following output:I was able to compile via the following
However, I am unable to compile the executable in
libcg/main-c
using eitherlibcg/main-c/makefile
or direct invocation of gcc.For the makefile, the output is
For using gcc directly, compiling the
main.o
object file seems to work; running the following throws no errors, and amain.o
appears withinlibcg/main-c
:However, the linking fails with the following output:
Version Info
The text was updated successfully, but these errors were encountered: