I had trouble compiling my application with a custom dll, the error appear to be some undefined reference to the functions i had created in my dll. Is there a need to update any environmental variable such as LD_LIBRARY_PATH as in linux system. Please advise.
One more thing is do anyone happen to have a copy of a makefile using c89 compiler?
1. Firstly are you on a SOM(32 bit PA-RISC) or ELF(64 bit PARISC or Itanium2) system2?
if ELF then form is "libXXXX.so[.major[.minor]]
else SOM form is "libXXXX.[sl | [.major[.minor]]]"
2. With HPUX it is very lazy and will happily let you build programs with undefined references.
Compile code position independent
with c89 use "+z"
wiht gcc use "+fPIC"
Building a shared library...
I also use "+cdp" to swizzle names of libraries for appropriate directories, so can build in one place and run in another.
With HPUX the path is "SHLIB_PATH" for SOM or "LD_LIBRARY_PATH" for ELF.
-o tells it what file to write to -b says build a shared library -B binding options for symbols +b list of paths to look in when loading +e exports one symbol, repeat for each symbol +h like ELF's soname +s can use environment vars for loading
hello Forum members,
what is internal mechanism of DLL's in Unix kernal.what is the major advantage over static libraries.
Thanks & Regards
Siva Ranganath (2 Replies)
Hi,
I want to create an image dynamically.
I used this function.
$img_handle = ImageCreate ($length, 10) or die ("Cannot Create image");
It was not creating the image. When i checked in error_log file the error was:
PHP Fatal error: Call to undefined function ImageCreate().
... (0 Replies)
Hello,
I am sorry to bother you all but I am thinking about switching to UNIX and I am a complete novice there.
The problem is that I need to call a C++ dll on UNIX platform which was compiled on Windows. I don't have the source code of the dll as well. I just need to call this dll in my C++... (2 Replies)
I have created DLLs in c++. Is it possible to run these DLLs in unix so that I can save time converting function/scripts in unix? In this way I can reuse these DLL in Unix. Thanks. (2 Replies)
Is it possible for a Unix script to execute a .dll. If so, where would I find information/examples of how to do that?
Thanks, in advance, for any help. :rolleyes: (2 Replies)
Hi all ,
How can I achieve getting the IP address of a local machine,
by sending packet over dll layer with its mac address,
and how should the frame be consturcted without providing
the IP address of the destination machine.
Thanx (0 Replies)
HI All,
I am trying to use a dll using dlopen but in vain. When I try to ldd that dll it returns no output. Can anybody please tell me how I can load this dll in my process space.
PS: ldd -l returns a lot of unsatisfied dependent symbols.
Thanks a lot in advance
Codeman (0 Replies)
I have source code of a Windows C DLL. It complies properly and works. Now I need to port it to UNIX environment.
I need to know if I can create a Dynamic Library or only Static Library is possible in UNIX.
In case I can create a Dynamic Library please guide me how to proceed. Or if there... (2 Replies)