0

How to connect the library to the project DLL and use the procedure / function?

I have a *.dll, I created *.Def file, created *.dll.a, *.ali and *.o, as its use is not clear.

Set an example for the use of ...

4

1 回答 1

0

To link with a dll you first have to know the location of the dll library in relation to the where your binary application will be on the user's computer (its file path) -- then use the pragma "Link_With".

If you wanted to link with opengl on windows you would do all of the c imports into a package spec and put something like this in the file:

pragma Link_With("/Windows/System32/opengl32.dll");
于 2013-10-01T10:50:42.927 回答