Skip to content

ian-ross/cpp-ffi-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haskell C++ FFI example

To build this, do the following:

Make the C++ test library (the make install step installs it to /usr/local/c++-ffi-example which you can clean up when you're done):

cd c++-lib
make
sudo make install

Make the Haskell library and test program:

cd ..
cabal configure
cabal build

Run the test program (setting up the shared library load path to pick up the C++ library):

export LD_LIBRARY_PATH=/usr/local/c++-ffi-example/lib:$LD_LIBRARY_PATH
./dist/build/tst-prog/tst-prog

About

Haskell C++ FFI example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published