Giter Club home page Giter Club logo

Comments (12)

dockimbel avatar dockimbel commented on August 19, 2024

@Oldes ^---

from code.

Oldes avatar Oldes commented on August 19, 2024

Works fine on Windows :-/ zerofill is defined in Red runtime - https://github.com/red/red/blob/master/runtime/allocator.reds#L152

from code.

Oldes avatar Oldes commented on August 19, 2024

@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.

Oldes avatar Oldes commented on August 19, 2024

@ajinkyakulkarni you can add -r into your compile command.

from code.

Oldes avatar Oldes commented on August 19, 2024

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.

ajinkyakulkarni avatar ajinkyakulkarni commented on August 19, 2024

@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.

Oldes avatar Oldes commented on August 19, 2024

Open a new issue here and provide info about version of SQLite you are using.

from code.

Oldes avatar Oldes commented on August 19, 2024

@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.

Oldes avatar Oldes commented on August 19, 2024

@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.

Cybarite avatar Cybarite commented on August 19, 2024

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.

Cybarite avatar Cybarite commented on August 19, 2024

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.

Oldes avatar Oldes commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.