<Shorttail>
I'm trying to link to sqlite3.dll on Windows. Is there a special import syntax for that? The linker fails when it can't find sqlite3.lib, which is not the name of the file
<Shorttail>
I'm linking it using `use "sqlite3"` and also tried using `use "sqlite3.dll`, but the latter just tries to link to qulite3.dll.lib
<SeanTAllen>
Shorttail: im not sure on windows. i have zero windows experience. i'll drop a note to gordon to see if he can answer your question. an email on the mailing list i can point him at would be good.
<Shorttail>
Let me join it, one moment
<Shorttail>
SeanTAllen: should I just post on the mailing list myself?
<SeanTAllen>
ya. please do.
<SeanTAllen>
and i'll send gordon a link to make sure he knows that i think he is the best person to answer.
<SeanTAllen>
thanks.
<Shorttail>
Thank you
<Shorttail>
SeanTAllen: I'm new to mailing lists, so just to be sure, the email goes to user@pony.groups.io, right?
<SeanTAllen>
yup
<SeanTAllen>
or you can use the web ui
<SeanTAllen>
Shorttail: i sent gordon an email calling out that specific email
<Shorttail>
Thank you
<Shorttail>
It's always fun being the Windows test dummy on young languages
<SeanTAllen>
im sure its straightforward
<SeanTAllen>
i just dont know windows at all
<SeanTAllen>
i am the least helpful of all people when it comes to windows
pzel has quit [Ping timeout: 248 seconds]
<SeanTAllen>
ive used some variation of unix or beos for the last 25 years
<SeanTAllen>
except for a computer that i had custom built with windows that only ever ran cubase and a couple other music apps like waveform
<Shorttail>
I'm developing on windows and deploying on linux for twice the fun
endformationage has quit [Quit: WeeChat 1.9.1]
<doublec>
Shorttail: to link dll's on windows you need a corresponding .lib file for the dll
<doublec>
Shorttail: usually you get it as a result of building the dll
<_rck>
0. Running pass 'Simplify the CFG' on function '@Main_tag__test_oo'
<SeanTAllen>
_rck: can you open an issue for that?
<_rck>
yes, I was trying to find a smaller example
<SeanTAllen>
if you could provide a backtrace when running a debug version of compiler as well, that would be helpful
<_rck>
how do I get a debug version, by building from source with make config=build ?
<SeanTAllen>
make install config=debug
<SeanTAllen>
and im pretty sure i know the commit your error was introduced in
<SeanTAllen>
so im going to ask you to try building at two different commits
<_rck>
sure, feel free to send them my way
<SeanTAllen>
can you try compiling your example with the compiler as of these two commits: edfbf3eac84db1a3011966466867eaf89d896e36 and 9222f08c97f0079f0d5d7f732d246c09969daa4d
<SeanTAllen>
i believe the first one should compile and the second should crash
<SeanTAllen>
if yes,
<SeanTAllen>
when you open your issue
<SeanTAllen>
note that the problem was introduced by 9222f08c97f0079f0d5d7f732d246c09969daa4d
<SeanTAllen>
i have it narrowed down to about 20 commits
<_rck>
ah, nice
<SeanTAllen>
10
endformationage has quit [Ping timeout: 260 seconds]
<SeanTAllen>
found it
<_rck>
\o/
pzel has joined #ponylang
_rck has quit [Quit: WeeChat 2.1]
spazzpp2 has quit [Quit: Konversation terminated!]
spazzpp2 has joined #ponylang
pzel has quit [Ping timeout: 265 seconds]
zetashift has quit [Ping timeout: 245 seconds]
vaninwagen has joined #ponylang
endformationage has joined #ponylang
acarrico has joined #ponylang
acarrico has quit [Ping timeout: 265 seconds]
zetashift has joined #ponylang
jemc has joined #ponylang
dynamics has quit [Ping timeout: 260 seconds]
<Shorttail>
Is there an easy way in pony to for print in the same thread instead of sending it to another actor? Or a way to waste a bit of time? I'm messing with some FFI and when it crashes I don't get messages printed prior to the crash
<vaninwagen>
but you need to compile your program with --debug
<Shorttail>
thanks a lot
<vaninwagen>
:)
<Shorttail>
It's still swallowing the prints
<vaninwagen>
hmmm... everything cleaned correctly? No old binary laying around? that bites me from time to time. If not, i am afraid you need to share some example code with me
<Shorttail>
I'll make a smaller example
<jemc>
(just make sure you're running `ponyc` with `--debug` to produce that bianry)
<jemc>
(otherwise `Debug("my string")` will do nothing)
<Shorttail>
It's using the sqlite3 library, you could probably switch with something else that crashes
<vaninwagen>
Shorttail: i tried your example on my machine and it successfully prints 1
<Shorttail>
Not on windows, by any chance?
<vaninwagen>
Shorttail: nah, ubuntu linux
<Shorttail>
Do you have a good stubstitute ffi that crashes so I can report the bug?
<vaninwagen>
no, not at hand. What kind of crash is it? I think it is fine to report and describe it this as you experienced
<Shorttail>
It's just that it requires sqlite3.lib to link and it's a few extra steps
<Shorttail>
It crashes as in the program terminates with no error message
<vaninwagen>
no windows-specific way to determine what happened?
<vaninwagen>
do you maybe have a debugger? maybe even lldb?
<Shorttail>
I've written a lot of crashing software in D, whenever I did anything wrong there I'd get visual studio pestering me to start the debugger. This is just a silent exit
<vaninwagen>
Shorttail: on linux there is the exit(int status) function. Is there soemthing related in windows?
<vaninwagen>
if you call this one instead of sqlite, will it also swallow everything?
<Shorttail>
I think I got part of the problem. sqlite3.dll wasn't present in the folder. When running it in powershell there is no error. When running it in cmd an error window opens saying the dll is missing. Adding the dll makes the printout work
<vaninwagen>
booyah!
<vaninwagen>
good old cmd
<Shorttail>
I don't like powershell hiding the error and letting it crash
<vaninwagen>
old, clunky, helpful
vaninwagen has quit [Quit: WeeChat 2.1]
spazzpp2 has quit [Quit: Leaving]
user10032 has quit [Quit: Leaving]
SenasOzys has joined #ponylang
jemc has quit [Read error: Connection reset by peer]