| To: | pcp@xxxxxxxxxxx |
|---|---|
| Subject: | pmcd pmda on windows |
| From: | Stephen Przepiora <sprzepiora@xxxxxxxxx> |
| Date: | Wed, 24 Nov 2004 10:52:47 -0500 |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=QkV2G0CZvPrh1N+egj1Iy8u8k2FpVW0b5NcyVZqAfPdfr+HPeQFoZWWI7FaNoYn6PWcJGEiyb519YwjBQFAOLhcxdQFj+z9Xai3Ia56QIijhAAZqvzMSOkkXe4N+DqgNVe6ZM8LCfZor8Zowa9uMyoceoid6WrXpYjzeezvgbsM= |
| Reply-to: | steve@xxxxxxxxxxxxx |
| Sender: | pcp-bounce@xxxxxxxxxxx |
Hello, I have noticed the pmcd pmda does not compile on windows and looked into it a little and found out it is because windows does not allow undefined references at compile time in shared libraries. Whereas in other os's the linker will patch everything up nice at runtime. While searching for a workaround, I came across this page: http://www.mail-archive.com/cygwin@xxxxxxxxxxxxxxxxxx/msg16806.html Which gives two work arounds: 1. Put the common symbols in a dll and link pmcd.exe and pmda_pmcd.dll to the new dll. 2. Add a function to pmda_pmcd.dll and pass in pointers to the data: pmda_pmcd.dll int * ext_data; void set_ext_data(int * c) {ext_data = c}; In dll, use *ext_data. pmcd.exe int data; set_ext_data(&data); in client, use data. Is any work being done on this? |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: windows, kenmcd |
|---|---|
| Next by Date: | Re: pmcd pmda on windows, Ken McDonell |
| Previous by Thread: | windows, Stephen Przepiora |
| Next by Thread: | Re: pmcd pmda on windows, Ken McDonell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |