Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2023-04

How I use de Linklib?

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to Henrique Gottardi Werlang
Henrique Gottardi Werlang wrote 6 lines
I trying the linklib directive, and the import don?t apper in the JS file. I tried like this {$linklib MyLibFile.js MyLib}

Imports only work in modules in the browser, or in NodeJS.

So Linklib only works when the target is module or nodejs. Assuming you work in the browser, did you set -Tmodule ?

Michael.

Reply by email