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

Linking problem under Mac OS X with framework Cocoa #3416

Closed
vicuna opened this issue Jan 4, 2005 · 1 comment
Closed

Linking problem under Mac OS X with framework Cocoa #3416

vicuna opened this issue Jan 4, 2005 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 4, 2005

Original bug ID: 3416
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Sylvain Chevillard
Version: ocaml 3.07+2
OS: Mac OS X
Submission from: infisxc.residence.ens-lyon.fr (140.77.128.144)

There is a conflict of symbols between the framework Cocoa and the Random
library under Mac OS X : the symbol _Random is defined twice and the linkig
aborts :

Minimal code :

0~/% more toto.ml
let f x = Random.int 43

0~/% ocamlopt -ccopt "-framework Cocoa" toto.ml -o toto
ld: multiple definitions of symbol _Random
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD(QD.o)
definition of _Random
/usr/local/lib/ocaml/stdlib.a(random.o) definition of _Random in section
(__DATA,__data)
Error during linking

@vicuna
Copy link
Author

vicuna commented Jan 5, 2005

Comment author: administrator

Full_Name: Sylvain Chevillard
Version: ocaml 3.07+2
OS: Mac OS X

There is a conflict of symbols between the framework Cocoa and the Random
library under Mac OS X : the symbol _Random is defined twice and the linkig
aborts :

Thanks for the bug report. This is fixed since version 3.08.0, by prepending
"caml" in front of every symbol.

-- Damien

@vicuna vicuna closed this as completed Jan 5, 2005
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant