Kirix Support Forums

compiling wxAUI as a dll

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

compiling wxAUI as a dll

Postby uts234 on Sun Feb 19, 2006 8:00 pm

I'm having troubles compiling this library as a dll on windows. I know it is my fault, but I was wondering what preprocessing defs need to be defined (ie WXUSINGDLL, WXMAKINGDLL).

I'm using vc++ 7.1 (.NET).

any pointers would be great - thanks
uts234
Registered User
 
Posts: 4
Joined: Sun Feb 19, 2006 7:57 pm

Postby Ben on Mon Feb 20, 2006 4:11 am

At present wxAUI, in its unpatched form, can't be compiled as a DLL. I think on the patch forum you will find a patch which makes it compile as a DLL.

Hope this helps.

All the best,
Ben
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Postby uts234 on Mon Feb 20, 2006 7:35 pm

I did have another look in the patch forum and then I downloaded some other third party wx stuff that could be built as a dll.

Using the patch mentioned in http://www.kirix.com/en/community/forum ... c.php?t=43 and then defining WXUSINGDLL and WXMAKINGDLL_AUI I have been able to build wxAUI as a dll and use it with the sample program in the wxAUI source (I was also using wx as dlls).

cheers
uts234
Registered User
 
Posts: 4
Joined: Sun Feb 19, 2006 7:57 pm

Postby automatix on Wed Mar 08, 2006 10:25 am

I have been able to build wxAUI as a dll and use it with the sample program in the wxAUI source

uts234 did you check your memory consumption? - i also compiled the patched wxaui as dll but i running into trouble - because as dll it causes memory leaks. :(

@ bwilliams did you got experiences?

By the way as lib or as hard including code in project it causes no leaks. So the code is fine for it standard purposes. :D
automatix
Registered User
 
Posts: 9
Joined: Wed Feb 15, 2006 4:23 am
Location: Germany

Postby uts234 on Thu Mar 09, 2006 10:23 pm

I must admit I didn't notice any memory leaks - however that doesn't mean anything! :oops:

I will have a closer look and get back to you

cheers
uts234
Registered User
 
Posts: 4
Joined: Sun Feb 19, 2006 7:57 pm

Postby uts234 on Thu Mar 09, 2006 11:18 pm

yes I have 100 bytes of leaked memory - bummer

I will keep looking
uts234
Registered User
 
Posts: 4
Joined: Sun Feb 19, 2006 7:57 pm

Postby automatix on Fri Apr 07, 2006 8:05 am

@uts234 did you it up to work without memory leaks until now?

.. i think this is the worst english i've ever read ..

however some ideas
automatix
Registered User
 
Posts: 9
Joined: Wed Feb 15, 2006 4:23 am
Location: Germany

Return to wxAUI Questions, Thoughts & Feedback