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

[bug] duplicate bindings in environment #1455

Open
scolsen opened this issue Jan 31, 2023 · 2 comments
Open

[bug] duplicate bindings in environment #1455

scolsen opened this issue Jan 31, 2023 · 2 comments

Comments

@scolsen
Copy link
Contributor

scolsen commented Jan 31, 2023

C:\Users\marti\tmp\Carp>carp examples\game_of_life.carp -x
I encountered an error when emitting code:

I found an ambiguous symbol set-render-draw-color at line 52, column 8 in 'C:/Users/marti/tmp/Carp/examples/game_of_life.carp'

Possibilities:
SDL.set-render-draw-color
SDL.set-render-draw-color
SDL.set-render-draw-color
SDL.set-render-draw-color

All possibilities have the correct type.

Traceback:
(build) at Compiler (Build & Run):1:5.
(do (build) (run)) at Compiler (Build & Run):1:1.

@hellerve
Copy link
Member

The example game_of_life.carp seems to use SDL submodules multiple times:

(use SDL)
(use SDLApp)
(use SDL.Event)
(use SDL.Keycode)
(use SDL.Mouse)
(use SDL.MouseState)

This seems to lead to duplicate symbols being part of the environment.

@MatthewHannigan
Copy link

FWIW commenting out (use SDLApp) doesn't change the behaviour at all. Same error message.

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

3 participants