Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


Tru64 how to make and use their own translation DLL

DLL also translated many online articles, but almost none of their Tru64unix a check to help, and we gained share.


Environment : alpha ds10, Tru64 unix5.1b, cc compiler

The primary source documents such as a wbc.c

One goal : to create a document with the following sentence order
Cc-c wbc.c
Be wbc.o

Linking into the following order : 2 Dynamic Link Library Document
Ld -shared -expect_unresolved '*' -o libwbc.so wbc.o
Libwbc.so be a dynamic link library.
Ldd libwbc.so libwbc.so order nm can be used to detect and contents inside

3:main.c use of this DLL as follows :
Cc -o main.exe libwbc.so main.c
Receive executable files main.exe

I test, "senior Unix Programming Environment" is a routine method of the above.

Tru64 how to make and use their own translation DLL

The following parameters role
4003rd ld man in China
-error_unresolved
Produce an error message and return a nonzero status when error
Unresolved symbols are encountered, except for those matched
-expect_unresolved. This is the default behavior for linking executable
Programs.
# Generated error message when an unknown sign and return a nonzero error status, acquiescence parameters


-update_registry Location_file
Register the location of this shared object 's segments and make sure
They stay out of the way of others in the location_file. The
Location_file is updated if it is writable. This option is used with
-shared.
# Increase the so_locations, as location_file

You use the following switches to alter the manner in which ld searches
-lx Search, a library, libx.{so|a}, where x is a string.

-noarchive
Require l references to resolve to shared objects. Normally, if the
L as specified by the shared object is not found, the linker attempts
To find the corresponding archive to resolve undefined symbols. This
Option disallows using those archives. Note that this option is posi-
Norton sensitive and can be used more than once on a command line. It
Affects only those options that follow it, and it is turned off by the
Next occurrence of a -noso or -so_archive option.



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com