Building a new library on top of another library (SDL and Eclipse)

I am working on a project with SDL. I feel that my code can / should be reused for any other projects that I might want to accept.

I was about to start a library project, but I don't know how to connect to the SDL libraries.

I usually go to the project settings and edit the Mingw32 Linker to include libraries (ming32, SDLmain and SDL). But the linker does not appear in the settings.

So my questions are:

Are there linker settings because creating a library is just a compilation?

And anyway, is it possible to build a library on top of existing libraries? That is, write my library using the SDL and stucts functions. Or will I need to get the source code and completely restore it with the code included?

Also, tips for sharing versus static in this instance?

(Also, any tips on where you can learn more about compilers and linkers, etc. I went through the data structures at school, but no further)

+3
source share
2 answers

As an introduction, you need to distinguish a very static library from dynamic ones, they are completely different animals ... they said that for your questions:

Are there linker settings because creating a library is just a compilation?

, . - (.. .o, ), . , .

, , , , . ( ) , .

( ) - , , . , .

, ? , , SDL stucts. ?

, , .

, static ?

, . : this, .

( , , .. , )

, . , .

+2

, , . , SDL , .

, : DLL MingW

+2

All Articles