diff options
author | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-25 23:15:53 +0000 |
---|---|---|
committer | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-25 23:15:53 +0000 |
commit | 652d78e63a34f9f2d3ce683444f9c0dafaf5f355 (patch) | |
tree | 118be776f0fa7b783784197f9aa8430bd2266ffb /tests | |
parent | b2bb376dbf5bc5d91676e1f2cf830a70a2bae254 (diff) | |
download | ATCD-652d78e63a34f9f2d3ce683444f9c0dafaf5f355.tar.gz |
Added OBJ_PREFIX tobe "./" and OBJ_SUFFIX to be ".so" on non-Win32 platforms.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/DLL_Test.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/DLL_Test.cpp b/tests/DLL_Test.cpp index e049a46af3d..67d9ec68392 100644 --- a/tests/DLL_Test.cpp +++ b/tests/DLL_Test.cpp @@ -42,8 +42,8 @@ USELIB("..\ace\aced.lib"); # define OBJ_SUFFIX ".exe" # define OBJ_PREFIX "" #else -# define OBJ_SUFFIX ".o" -# define OBJ_PREFIX ".obj/" +# define OBJ_SUFFIX ".so" +# define OBJ_PREFIX "./" #endif /*ACE_WIN32*/ class Hello @@ -97,17 +97,19 @@ main (int argc, char *argv[]) ACE_DLL dll; - int retval = dll.open (OBJ_PREFIX "DLL_Test" OBJ_SUFFIX); + int retval = dll.open (OBJ_PREFIX "libDLL_Test" OBJ_SUFFIX); if (retval != 0) ACE_ERROR_RETURN ((LM_ERROR, - dll.error ()), + "%p\n", + dll.error ()), -1); TC f = (TC) dll.symbol ("get_hello"); if (f == 0) ACE_ERROR_RETURN ((LM_ERROR, - dll.error ()), + "%p\n", + dll.error ()), -1); auto_ptr<Hello> my_hello (f ()); |