Simple example of using Qt with Nim
$ qmake && make
$ nim cpp -d:release main
This uses static libs, but can easily be made to use dynamic libs by doing the following:
- Change the
CONFIG
value inmain.pro
todynamiclib
- Make both
initQt
&sendNim
C++ functionsextern "C"
- Use Nim's
dynLib
pragma instead oflink
&passL
to link