- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a base DLL project test_lib.vfproj which successfully creates a DLL and LIB file in the output directory. I created a cut down project test2_lib.vfproj, by copying the test_lib vfproj file, and edited the vfproj file to rename all occurrences of test_lib to test2_lib, and rebuilt test2_lib.vfproj. However test2_lib.lib is not created (the DLL is). The command line has /IMPLIB:"F:\Proj\tmp\test2_lib\Debug\x64\test2_lib.lib" which is where the DLL is built too.
Any idea why is the LIB not being built?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, you need to explicitly export one or more routines from the library via a compiler directive:
!DEC$ ATTRIBUTES DLLEXPORT :: routinename
This appears after the subroutine or function statement.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, you need to explicitly export one or more routines from the library via a compiler directive:
!DEC$ ATTRIBUTES DLLEXPORT :: routinename
This appears after the subroutine or function statement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
aah yes, of course, thank you!

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page