2014-08-03 19:52:23 +02:00
|
|
|
|
|
|
|
#ifndef SHAREDLIB_DEFINE
|
2018-08-09 18:06:22 +02:00
|
|
|
# error Expected SHAREDLIB_DEFINE
|
2014-08-03 19:52:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SHAREDDEPENDLIB_DEFINE
|
2018-08-09 18:06:22 +02:00
|
|
|
# error Expected SHAREDDEPENDLIB_DEFINE
|
2014-08-03 19:52:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "shareddependlib.h"
|
2018-08-09 18:06:22 +02:00
|
|
|
#include "sharedlib.h"
|
2014-08-03 19:52:23 +02:00
|
|
|
|
2016-07-09 11:21:54 +02:00
|
|
|
int main(int, char**)
|
2014-08-03 19:52:23 +02:00
|
|
|
{
|
|
|
|
SharedLibObject sl;
|
|
|
|
SharedDependLibObject sdl = sl.object();
|
|
|
|
|
|
|
|
return sdl.foo() + sl.foo();
|
|
|
|
}
|