lör 2011-08-06 klockan 19:26 +0200 skrev Paul Millar:
> /*
> * How to compile:
> *
> * gcc -Wall -o cgsi_plugin_test cgsi_plugin_test.c -lgsoap -lcgsi_plugin
> */
Please note that in order to work correctly you must use the cflags from
gsoap's pkg-config:
$ gcc -Wall `pkg-config --cflags gsoap` -o cgsi-plugin-test
cgsi-plugin-test.c -lgsoap -lcgsi_plugin
$ ./cgsi-plugin-test
Before registering plugin:
fopen: 0x7ffcc001fa20
Registring cgsi_plugin gSOAP plugin.
After registering plugin:
fopen: 0x7ffcbfdfd910
Check for plugin-specific data:
data: 0x13114a0
Without them you get a segmentation fault.
$ gcc -Wall -o cgsi-plugin-test cgsi-plugin-test.c -lgsoap -lcgsi_plugin
$ ./cgsi-plugin-test
Before registering plugin:
fopen: 0x7fb2591eba20
Registring cgsi_plugin gSOAP plugin.
After registering plugin:
fopen: 0x7fb258fc9910
Check for plugin-specific data:
data: 0x17ec4a0
Segmenteringsfel (minnesutskrift skapad)
Mattias
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]