- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI:
when I compile my own library,it generates many module files ,and only a library file . in windows, I have add a line !DEC$ OBJCOMMENT LIB:'' to let the modules point to one lib ,but in linux, it can't be recognized. At first ,I think if i use the -I${INLCUDE}
and -L{LIBRARY_PATH} ,the compiler will look into the library which I point to ,But the result seems it can find the module file ,not library.it can go through the pretranslation process successfully.and acts not find the function accordingly .........
So ,what I can do ?
Thanks!
when I compile my own library,it generates many module files ,and only a library file . in windows, I have add a line !DEC$ OBJCOMMENT LIB:'' to let the modules point to one lib ,but in linux, it can't be recognized. At first ,I think if i use the -I${INLCUDE}
and -L{LIBRARY_PATH} ,the compiler will look into the library which I point to ,But the result seems it can find the module file ,not library.it can go through the pretranslation process successfully.and acts not find the function accordingly .........
So ,what I can do ?
Thanks!
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not familiar with the Windows directive you mention. But on Linux, what exactly do you want to do? Do you want to create a static library (.lib) or a shared library ( .so )? Are you asking how to gather the compiled object files into one library?
ron
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This directive adds a linker directive to the object code that names a library to be referenced. The Windows linker has this feature, the Linux and Mac OS linkers do not.

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