Comments (12)
@Oldes ^---
from code.
Works fine on Windows :-/ zerofill
is defined in Red runtime - https://github.com/red/red/blob/master/runtime/allocator.reds#L152
from code.
@dockimbel the reason will be, that @ajinkyakulkarni is using libRedRT and zerofill
is probably not included. I wonder how to solve such an issues.
from code.
@ajinkyakulkarni you can add -r
into your compile command.
from code.
Or delete libRedRT
library (libRedRT.dll) on windows... on mac it should be something like libRedRT.dylib... and compile the script again using your command.. it should rebuild the RT library with missing functions on the first compile and then use it so you will have faster compilation than with using -r
switch. @dockimbel is it correct?
from code.
@Oldes I deleted the libRedRT.dylib and then recompiled ./red-063 -c -r code/Library/SQLite/SQLite3-test.red
When I run ./SQLite3-test
, I now get following error -
`--> open
DB: 0 02811200
--> trace
3
dyld: lazy symbol binding failed: Symbol not found: _sqlite3_trace_v2
Referenced from: /Users/ajinkya/Downloads/./SQLite3-test
Expected in: flat namespace
dyld: Symbol not found: _sqlite3_trace_v2
Referenced from: /Users/ajinkya/Downloads/./SQLite3-test
Expected in: flat namespace
[1] 91392 trace trap ./SQLite3-test`
Should I log this issue here https://github.com/Oldes/Red-SQLite instead?
from code.
Open a new issue here and provide info about version of SQLite you are using.
from code.
@ajinkyakulkarni I would bet, that your SQLite version is older, because sqlite3_trace_v2
is function which replaced sqlite3_trace
function, which is supposed to be deprecated now
I wonder If I should rework the binding to support even some older SQLite versions too... or maybe you could just update:)
from code.
@ajinkyakulkarni if you need to use old library, you can simply ignore the new API functions.. like in this new Red/System basic example
At least I think that this file should be ok (it is using the old trace API call). Unfortunately, making Red version is not on my todo list. It was meant as a startup anyway. Anybody is welcome to improve it.
from code.
I had this same problem. When I downloaded a refreshed version of red
Windows | red-063.exe | 1.1 MB |
---|---|---|
sha256: 105d0f7b009a802a35a636c5dbedc69e89477fd62b6ba77690845fd78d436171 | ||
This error changed. I am opening new ticket for that. #78 |
from code.
Still hoping to solve this one ... as the build time is noticeable ...
If zerofill in SQLite3.red is replaced by its definition - about line 32 - viz
zerofill dbs-head dbs-tail
is replaced by
until [
dbs-head/value: 0
dbs-head: dbs-head + 1
dbs-head = dbs-tail
]
that problem goes away ... to be replaced by a new one
Compiling to native code...
*** Compilation Error: undefined symbol: red/integer/make-in
- zerofill is defined in %allocator.reds
- integer/make-in is defined in %datatypes/integer.reds
- %runtime/red.reds has this include #include %datatypes/integer.reds
from code.
zerofill
was runtime function... it was removed and replaced with fill
so instead of:
zerofill dbs-head dbs-tail
there should be:
fill dbs-head dbs-tail 0
from code.
Related Issues (15)
- There's some jumpyness in resize-image tests HOT 6
- Picosheet demo broken by more strict word rules HOT 1
- simple-clock.red doesn't appear to work with latest Red HOT 1
- Can't run anything HOT 1
- Compilation Error: undefined symbol: red/image/acquire-buffer in mandelbrot-fast.red HOT 1
- `mandelbrot.red` gives error if closed abruptly HOT 1
- Build on sqlite3.red failing on argument type mismatch HOT 3
- can not run the calculator demo HOT 1
- Not able to compile ZeroMQ. Calls from Red(not System): handle! != byte-ptr! HOT 6
- Mandlebrot (slow) broken since circa October 2018 HOT 6
- Gradient Lab HOT 5
- Picosheet on W7 skips initial update HOT 11
- Missing %definitions.reds HOT 3
- Broken Showcase/Calculator.red HOT 15
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 code.