Hi Martin,
thanks for your reply.
Depending on your compiler you need to have the linker "export all symbols" as well as "export dynamic". The dll has to be compiled and linked with the same tools as your PD. These are some of the things I have run into in the past.
I have rebuilt pd using visual studio, so that I use the same tools as those used for the OSC extra, and I have added the following:
#define OSC_API __declspec(dllexport)
which should export all the functions (OSC_API is in front of all functions declaration) but I still get the same error:
load_object: Symbol "osc_setup" not found osc: can't load library
is __declspec(dllexport) enough to export the symbols in the right way?
any suggestion is welcome.
Thanks, Enrico
---------- Initial Header -----------
From : pd-list-bounces@iem.at
To : "pd-list" pd-list@iem.at Cc : Date : Mon, 08 Aug 2005 12:45:38 -0400 Subject : Re: [PD] problems with OSC in windows
Depending on your compiler you need to have the linker "export all symbols" as well as "export dynamic". The dll has to be compiled and linked with the same tools as your PD. These are some of the things I have run into in the past.
Martin
enrico_groups@libero.it wrote:
Thanks for your reply Piotr,
the problem is that because pd cannot load the OSC library, then I cannot use any of it, so for example, if I try to create the OSCroute object, I get:
tried C:\Program\OSCroute.dll and failed tried C:\Program Files\pd\extra\OSCroute.dll and failed
tried C:\Program\OSCroute\OSCroute.dll and failed tried C:\Program Files\pd\extra\OSCroute\OSCroute.dll and failed tried C:\Program\OSCroute.pd and failed tried C:\Program Files\pd\extra\OSCroute.pd and failed tried C:\Program\OSCroute.pat and failed tried C:\Program Files\pd\extra\OSCroute.pat and failed OSCroute ... couldn't create
I looked at the source for OSC and osc_setup is a function. it seems that on my machine PD cannot access it in the dll. I do not understand though why.. and how to fix this. I tried a few different releases, but no luck.
Has anyone seen anything similar (even with other externals)?
Any suggestion is welcome.
Thanks, Enrico
---------- Initial Header -----------
From : "Piotr Majdak" piotr@majdak.com
To : "enrico_groups@libero.it" enrico_groups@libero.it Cc : "pd-list" pd-list@iem.at Date : Mon, 08 Aug 2005 17:25:33 +0200
Subject : Re: [PD] problems with OSC in windows
Hi Enrico,
enrico_groups@libero.it wrote:
I am trying to use the osc extra. load_object: Symbol "osc_setup" not found osc: can't load library
any suggestion?
I'm not sure if there is osc_setup at all.
I use objects dumpOSC and OSCroute - it works fine...
Peter
-- Piotr Majdak Institut für Schallforschung Österreichische Akademie der Wissenschaften Reichsratsstr. 17 A-1010 Wien Tel.: +43-1-4277-29511 Fax: +43-1-4277-9296 E-Mail: piotr@majdak.com WWW: http://www.kfs.oeaw.ac.at
6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero! Scaricalo su INTERNET GRATIS 6X http://www.libero.it
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Libero Flat, sempre a 4 Mega a 19,95 euro al mese! Abbonati subito su http://www.libero.it