Comments (7)
try in 8084605
from cello.
Same error. There appears to be no improvement.
from cello.
What operating system and compiler are you using?
from cello.
Mac OS X Mavericks
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
I'm going to test this in a Linux machine next.
from cello.
This is what I get on Linux:
gcc -o lambdas lambdas.c -std=c11 -lCello
/usr/lib/libCello.a(List.o): In function `List_Reserve_More':
/root/libCello/src/List.c:136: undefined reference to `ceil'
/usr/lib/libCello.a(List.o): In function `List_Reserve_Less':
/root/libCello/src/List.c:177: undefined reference to `pow'
/root/libCello/src/List.c:178: undefined reference to `floor'
/root/libCello/src/List.c:177: undefined reference to `pow'
/root/libCello/src/List.c:178: undefined reference to `floor'
/usr/lib/libCello.a(List.o): In function `List_Reserve_More':
/root/libCello/src/List.c:136: undefined reference to `ceil'
/usr/lib/libCello.a(Module.o): In function `Module_Get':
/root/libCello/src/Module.c:106: undefined reference to `dlsym'
/usr/lib/libCello.a(Module.o): In function `Module_Exit':
/root/libCello/src/Module.c:92: undefined reference to `dlclose'
/usr/lib/libCello.a(Module.o): In function `Module_Enter':
/root/libCello/src/Module.c:70: undefined reference to `dlopen'
/root/libCello/src/Module.c:77: undefined reference to `dlerror'
/usr/lib/libCello.a(Thread.o): In function `Mutex_Lock_Try':
/root/libCello/src/Thread.c:356: undefined reference to `pthread_mutex_trylock'
/usr/lib/libCello.a(Thread.o): In function `Thread_Call':
/root/libCello/src/Thread.c:197: undefined reference to `pthread_create'
/usr/lib/libCello.a(Thread.o): In function `tls_key_create':
/root/libCello/src/Thread.c:139: undefined reference to `pthread_key_create'
/usr/lib/libCello.a(Thread.o): In function `Thread_Init_Run':
/root/libCello/src/Thread.c:148: undefined reference to `pthread_setspecific'
/usr/lib/libCello.a(Thread.o): In function `Thread_Terminate':
/root/libCello/src/Thread.c:268: undefined reference to `pthread_kill'
/usr/lib/libCello.a(Thread.o): In function `Thread_Join':
/root/libCello/src/Thread.c:254: undefined reference to `pthread_join'
/usr/lib/libCello.a(Thread.o): In function `Thread_Current':
/root/libCello/src/Thread.c:217: undefined reference to `pthread_getspecific'
/usr/lib/libCello.a(Thread.o): In function `tls_key_delete':
/root/libCello/src/Thread.c:142: undefined reference to `pthread_key_delete'
/usr/lib/libCello.a(Array.o): In function `Array_Reserve_More':
/root/libCello/src/Array.c:140: undefined reference to `ceil'
/usr/lib/libCello.a(Array.o): In function `Array_Reserve_Less':
/root/libCello/src/Array.c:184: undefined reference to `pow'
/root/libCello/src/Array.c:185: undefined reference to `floor'
/usr/lib/libCello.a(Array.o): In function `Array_Reserve_More':
/root/libCello/src/Array.c:140: undefined reference to `ceil'
/usr/lib/libCello.a(Array.o): In function `Array_Reserve_Less':
/root/libCello/src/Array.c:184: undefined reference to `pow'
/root/libCello/src/Array.c:185: undefined reference to `floor'
collect2: error: ld returned 1 exit status
(With latest commit)
I believe this error is caused because math.h
isn't defining the functions it's supposed to.
from cello.
Its because you need to link to maths with -lm
. If you're going to compile the examples you need to do it with the commands as in the Makefile.
from cello.
With -lm -lpthread -ldl
it works just fine in linux.
from cello.
Related Issues (20)
- Unexpected GC behavior with Tuple HOT 5
- Make install should use "install --mode=..." instead of "cp" HOT 2
- make install doesn't install the dynamic library
- How do one "extends" a type? HOT 3
- error: cast to pointer from integer of different size HOT 2
- pop semantics? HOT 3
- Append Char HOT 2
- MacOS: __dyld section not supported HOT 1
- Abstracting a scripting language's internal value types using Cello HOT 1
- Feature request : Lua->Cello transpiler
- Missing Git tag for 2.1.0 release HOT 2
- Can I make a wrapper for other languages?
- Add vcpkg installation instructions
- Question about Array
- Doesn't work with Emscripten HOT 2
- is the project alive? can I use it in my product? who develops forks based on Cello? HOT 3
- Moving objects between threads HOT 1
- Failed to compile on GCC 8.1.0
- Can you do a comparison to Nim and Nelua?
- new release? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cello.