summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorkirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-25 23:15:53 +0000
committerkirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-25 23:15:53 +0000
commit652d78e63a34f9f2d3ce683444f9c0dafaf5f355 (patch)
tree118be776f0fa7b783784197f9aa8430bd2266ffb /tests
parentb2bb376dbf5bc5d91676e1f2cf830a70a2bae254 (diff)
downloadATCD-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.cpp12
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 ());