Skip to content

nditc/shared_lib_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Let's Make a DLL
================

First let's define our libray. In our case we are gonna use `fib.cpp` as a library aka outer code.

Now build the object file.

```
> g++ -c fib.cpp -o fib.o
```

Then let's build the dll

```
> ld -shared fib.o -o fib.dll
```

The dll is complete! Now let's compile & run the main program!

```
> g++ main.cpp -ldl -o main.exe
> main.exe
```

And Congrats!

About

A demo made for shared libraries aka dll files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages