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

Get Can't find symbol 'make-update-deriver' when trying to run example on Windows 11 #1452

Open
maacl opened this issue Jan 27, 2023 · 7 comments

Comments

@maacl
Copy link

maacl commented Jan 27, 2023

CARP_DIR is set. I get a REPL when running carp.

carp vector.carp -x
Can't find symbol 'make-update-deriver' at C:/Users/marti/tmp/Carp/examples/derive.carp:2:3.

Traceback:
  (load-once "Derive.carp") at C:/Users/marti/tmp/Carp/core/Core.carp:25:1.
@hellerve
Copy link
Member

Thanks for the bug report!

Is it possible that you are in the examples directory? If so, the problem is that one of the examples is called derive.carp, shadowing the standard library file Derive.carp. If you try to run it from the parent directory, for example, it should run.

NB: Ideally we could resolve this issue by making core files take precedence, but I suppose users couldn’t overwrite those then, making it a bit of a double-edged sword.

@maacl
Copy link
Author

maacl commented Jan 27, 2023

That is where I am. Works from the parent dir, but now I am getting the below:

carp examples\benchmark_mandelbrot.carp -x
Can't find symbol 'defdynamic-once' at C:/Users/marti/AppData/Roaming/carp/profile.carp:1:2.

profile.carp is:

(defdynamic-once sdl-windows-header-path "C:\\msys64\mingw64\include\SDL2\\")
(defdynamic-once sdl-windows-library-path "C:\\msys64\mingw64\bin\\")

@hellerve
Copy link
Member

Hello, sorry about the late answer!

Indeed, defdynamic-once is defined after profile.carp is loaded. defdynamic should work.

Your profile file is indeed the first thing that is loaded, before any core libraries, so you can change things as early as possible. defdynamic-once on the other hand is a macro defined in the core libraries.

@maacl
Copy link
Author

maacl commented Jan 31, 2023

I set it per instructions here.

@hellerve
Copy link
Member

Ah yes, thanks for the heads-up. I will clarify the comment to say that you should use defdynamic instead to set them.

@hellerve
Copy link
Member

hellerve commented Jan 31, 2023 via email

@maacl
Copy link
Author

maacl commented Jan 31, 2023

Check, I am on gitter now.

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

2 participants