From: John <st...@un...> - 2004-04-19 19:48:10
|
i was just working on patches for FreeBSD and ran across this from head. I've been missing around with wxgtk so i'm not completely sure this isn't just my issue (btw this is on FreeBSD). There are many more errors i just thought i'd keep is small. a complete list is up on http://mail.unixjunkie.com/errors.txt g++ main.o prefs.o calls.o directory.o dial.o frame.o devices.o xrc_res.o \ accounts.o ringer.o ../../lib/libiaxclient.a -lwx_gtk_xrc-2.4 -pthread \ -lm `wx-config --libs` - o iaxcomm main.o: In function `theApp::OnInit(void)': /home/strgout/shit/iaxclient/simpleclient/iaxcomm/main.cc:116: undefined reference to `wxXmlResource::Get(void)' /home/strgout/shit/iaxclient/simpleclient/iaxcomm/main.cc:116: undefined reference to `wxXmlResource::InitAllHandlers(void)' main.o: In function `theApp::load_xrc_resource(wxString const &)': /home/strgout/shit/iaxclient/simpleclient/iaxcomm/main.cc:294: undefined reference to `wxXmlResource::Get(void)' /home/strgout/shit/iaxclient/simpleclient/iaxcomm/main.cc:294: undefined reference to `wxXmlResource::Load(wxString const &)' /home/strgout/shit/iaxclient/simpleclient/iaxcomm/main.cc:303: undefined reference to `wxXmlResource::Get(void)' /home/strgout/shit/iaxclient/simpleclient/iaxcomm/main.cc:303: undefined reference to `wxXmlResource::Load(wxString const &)' /home/strgout/shit/iaxclient/simpleclient/iaxcomm/main.cc:311: undefined reference to `wxXmlResource::Get(void)' /home/strgout/shit/iaxclient/simpleclient/iaxcomm/main.cc:311: undefined reference to `wxXmlResource::Load(wxString const &)' /home/strgout/shit/iaxclient/simpleclient/iaxcomm/main.cc:321: undefined reference to `wxXmlResource::Get(void)' /home/strgout/shit/iaxclient/simpleclient/iaxcomm/main.cc:321: undefined reference to `wxXmlResource::Load(wxString const &)' |
From: John <st...@un...> - 2004-04-19 20:30:23
|
On Mon, Apr 19, 2004 at 02:50:13PM -0500, John wrote: > i was just working on patches for FreeBSD and ran across this from head. > > I've been missing around with wxgtk so i'm not completely sure this isn't just > my issue (btw this is on FreeBSD). There are many more errors i just thought > i'd keep is small. > > a complete list is up on > http://mail.unixjunkie.com/errors.txt oops, sorry it was me. I was testing out compiling wxgtk without dynamic lib support and things didn't go so well, afterwards i had left over libs. Everything is cleaned out and it compiles just fine now. |
From: Eloy D. <elo...@vo...> - 2004-04-21 10:21:04
|
Hi All, I was wondering whether anyone has been able to successfully create a win32 .dll file for Borland C++ enterprise developer, without altering the iaxclient lib sources. If so, I would like to know how this was achieved (project/unit settings, compiler/linker configuration). I have been able to use iaxclientlib with some success in my IAX2 softphone client, but I had to modify the iaxclient lib and various other libraries (gsm, speex, portaudio), in order to compile/link them into my application. Instead of this, I would prefer a cleaner interface between my application and the libiaxclient suite by compiling it into a .dll (with typelib info). Any pointers or info will be appreciated. Thanks in advance, Eloy Domingos |
From: Steve K. <st...@st...> - 2004-04-21 13:27:34
|
I think that several people are making DLLs from iaxclient, but they all use some kind of "glue" file to do it. As I understand it, it should be relatively straightforward to make the iaxclient library functions available when compiled to a DLL (while also making sure it can still compile to a static library with different options). The issue for some people (not for you), was that they didn't know how (or it may not be possible) to have Visual Basic access the union which we're currently using for events: typedef struct iaxc_event_struct { int type; union { struct iaxc_ev_levels levels; struct iaxc_ev_text text; struct iaxc_ev_call_state call; } ev; } iaxc_event; So, making the current API available to Visual Basic is problematic. We could add a couple of simple C functions to do the casting necessary, though. Basically something like this: struct iaxc_ev_levels *iaxc_extract_levels(struct iaxc_event struct *s) { return &(s->levels); } etc. This would allow VB programmers (I think) to get the union members without needing to figure out how to make VB access the union. If we do this, though, I'd like input from the VB and other DLL users though, so we can make a solution that works for everyone. -SteveK Eloy Domingos wrote: >Hi All, > > >I was wondering whether anyone has been able to successfully create >a win32 .dll file for Borland C++ enterprise developer, without altering >the iaxclient lib sources. If so, I would like to know how this was >achieved (project/unit settings, compiler/linker configuration). > >I have been able to use iaxclientlib with some success in my IAX2 >softphone client, but I had to modify the iaxclient lib and various >other libraries (gsm, speex, portaudio), in order to compile/link them into >my application. Instead of this, I would prefer a cleaner interface >between my application and the libiaxclient suite by compiling it into >a .dll (with typelib info). > >Any pointers or info will be appreciated. > > >Thanks in advance, >Eloy Domingos > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >Iaxclient-devel mailing list >Iax...@li... >https://lists.sourceforge.net/lists/listinfo/iaxclient-devel > > > |
From: Paulo M. <pa...@in...> - 2004-04-21 15:44:42
|
Hi All, I just spent yesterday compiling it under BC++ 6 and generating a static library. The main issue that I encountered was that BC doesn't support arrays of zero size, used in IAX.C to define the end of the IAX header. Other issue was that some files in different directories have the same name, which results in the linker disregarding the second file from the link. -----Original Message----- From: iax...@li... [mailto:iax...@li...] On Behalf Of Eloy Domingos Sent: quarta-feira, 21 de abril de 2004 07:21 To: iax...@li... Subject: [Iaxclient-devel] Creating iaxclient .dll for Borland C++ Hi All, I was wondering whether anyone has been able to successfully create a win32 .dll file for Borland C++ enterprise developer, without altering the iaxclient lib sources. If so, I would like to know how this was achieved (project/unit settings, compiler/linker configuration). I have been able to use iaxclientlib with some success in my IAX2 softphone client, but I had to modify the iaxclient lib and various other libraries (gsm, speex, portaudio), in order to compile/link them into my application. Instead of this, I would prefer a cleaner interface between my application and the libiaxclient suite by compiling it into a .dll (with typelib info). Any pointers or info will be appreciated. Thanks in advance, Eloy Domingos ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Iaxclient-devel mailing list Iax...@li... https://lists.sourceforge.net/lists/listinfo/iaxclient-devel |
From: Adam H. <ad...@te...> - 2004-04-22 01:04:32
|
Controversial solution, use VC++ - MS just released the VC++ .NET optimised compiler for free Paulo Mannheimer wrote: >Hi All, I just spent yesterday compiling it under BC++ 6 and generating >a static library. > >The main issue that I encountered was that BC doesn't support arrays of >zero size, used in IAX.C to define the end of the IAX header. Other >issue was that some files in different directories have the same name, >which results in the linker disregarding the second file from the link. > > >-----Original Message----- >From: iax...@li... >[mailto:iax...@li...] On Behalf Of Eloy >Domingos >Sent: quarta-feira, 21 de abril de 2004 07:21 >To: iax...@li... >Subject: [Iaxclient-devel] Creating iaxclient .dll for Borland C++ > > >Hi All, > > >I was wondering whether anyone has been able to successfully create a >win32 .dll file for Borland C++ enterprise developer, without altering >the iaxclient lib sources. If so, I would like to know how this was >achieved (project/unit settings, compiler/linker configuration). > >I have been able to use iaxclientlib with some success in my IAX2 >softphone client, but I had to modify the iaxclient lib and various >other libraries (gsm, speex, portaudio), in order to compile/link them >into my application. Instead of this, I would prefer a cleaner interface > >between my application and the libiaxclient suite by compiling it into a >.dll (with typelib info). > >Any pointers or info will be appreciated. > > >Thanks in advance, >Eloy Domingos > > > |
From: Paulo M. <pa...@in...> - 2004-04-22 12:02:57
|
Well ... The point is that we here like borland products very much. We could contribute with code snippets with some conditional compilation for the borland platform. Who should we send it to? -----Original Message----- From: iax...@li... [mailto:iax...@li...] On Behalf Of Adam Hart Sent: quarta-feira, 21 de abril de 2004 22:05 To: iax...@li... Subject: Re: [Iaxclient-devel] Creating iaxclient .dll for Borland C++ Controversial solution, use VC++ - MS just released the VC++ .NET optimised compiler for free Paulo Mannheimer wrote: >Hi All, I just spent yesterday compiling it under BC++ 6 and generating >a static library. > >The main issue that I encountered was that BC doesn't support arrays of >zero size, used in IAX.C to define the end of the IAX header. Other >issue was that some files in different directories have the same name, >which results in the linker disregarding the second file from the link. > > >-----Original Message----- >From: iax...@li... >[mailto:iax...@li...] On Behalf Of Eloy >Domingos >Sent: quarta-feira, 21 de abril de 2004 07:21 >To: iax...@li... >Subject: [Iaxclient-devel] Creating iaxclient .dll for Borland C++ > > >Hi All, > > >I was wondering whether anyone has been able to successfully create a >win32 .dll file for Borland C++ enterprise developer, without altering >the iaxclient lib sources. If so, I would like to know how this was >achieved (project/unit settings, compiler/linker configuration). > >I have been able to use iaxclientlib with some success in my IAX2 >softphone client, but I had to modify the iaxclient lib and various >other libraries (gsm, speex, portaudio), in order to compile/link them >into my application. Instead of this, I would prefer a cleaner interface > >between my application and the libiaxclient suite by compiling it into >a .dll (with typelib info). > >Any pointers or info will be appreciated. > > >Thanks in advance, >Eloy Domingos > > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Iaxclient-devel mailing list Iax...@li... https://lists.sourceforge.net/lists/listinfo/iaxclient-devel |
From: Eloy D. <elo...@vo...> - 2004-04-26 08:56:35
|
Hi Paulo, On Wed, 21 Apr 2004 12:46:18 -0300, Paulo Mannheimer wrote > Hi All, I just spent yesterday compiling it under BC++ 6 and generating > a static library. > > The main issue that I encountered was that BC doesn't support arrays > of zero size, used in IAX.C to define the end of the IAX header. Yup, I had this problem too. I noticed I *could use* zero size arrays in structures in C++ files (.cc). So, I decided to #include "iax.c" into a IAXWrapper.cc file, and to my amazement it now compiles without error. IMHO this is a Borland C flaw, but it has some considerable and undesirable side effects... Apart from the "zero size array within struct" problem, there were a great many other issues, which prevented me from successfully compiling and linking a .dll file which suits Borland C++. Problem with wrapping the files is that you end up wrapping all files in a C++ wrapper, causing a whole bunch of other errors. One problem which occurred often was C++ choking on less strongly type-d code. Especially "illegal" pointer conversions, function prototyping etc.. One reason for some problems which occurred could be that I may have faulty preproccesing macros. I would like to know which macros you have suppied to Borland C++ to compile your code. As I said before, I have been able to compile and link the libiaxclient code into my application, but I had to do a sh*tload editing on the libiaxclient stuff (including gsm, portaudio and what not) before I could use it :-( Somehow, I just feel the port should be possible without so much rework. There should be a neater way of creating a Borland C++ project, comprising of several .dll files (say one for each lib (gsm, speex, portaudio, portmixer, libiaxclient), compiling only those files as C++ as needed by the "zero size array in struct" problem and compiling the rest with C as would be normally required. This way, modifications would not be needed as newer versions of the libs are released. Kind regards, Eloy Domingos > Other issue was that some files in different directories have the > same name, which results in the linker disregarding the second file > from the link. > > -----Original Message----- > From: iax...@li... > [mailto:iax...@li...] On Behalf Of > Eloy Domingos Sent: quarta-feira, 21 de abril de 2004 07:21 To: > iax...@li... Subject: [Iaxclient-devel] > Creating iaxclient .dll for Borland C++ > > Hi All, > > I was wondering whether anyone has been able to successfully create a > win32 .dll file for Borland C++ enterprise developer, without > altering the iaxclient lib sources. If so, I would like to know how > this was achieved (project/unit settings, compiler/linker > configuration). > > I have been able to use iaxclientlib with some success in my IAX2 > softphone client, but I had to modify the iaxclient lib and various > other libraries (gsm, speex, portaudio), in order to compile/link > them into my application. Instead of this, I would prefer a cleaner interface > > between my application and the libiaxclient suite by compiling it > into a .dll (with typelib info). > > Any pointers or info will be appreciated. > > Thanks in advance, > Eloy Domingos > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Iaxclient-devel mailing list Iax...@li... > https://lists.sourceforge.net/lists/listinfo/iaxclient-devel > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Iaxclient-devel mailing list > Iax...@li... > https://lists.sourceforge.net/lists/listinfo/iaxclient-devel Vocalis Internet Open WebMail (https://webmail.vocalisinternet.com) |
From: Paulo M. <pa...@in...> - 2004-04-26 12:05:55
|
Besides loads os warnings, we were able to compile it without too much code tweaking. Who should we post our code changes to? -----Original Message----- From: iax...@li... [mailto:iax...@li...] On Behalf Of Eloy Domingos Sent: segunda-feira, 26 de abril de 2004 05:56 To: pa...@in... Cc: Iax...@li... Subject: RE: [Iaxclient-devel] Creating iaxclient .dll for Borland C++ Hi Paulo, On Wed, 21 Apr 2004 12:46:18 -0300, Paulo Mannheimer wrote > Hi All, I just spent yesterday compiling it under BC++ 6 and > generating a static library. > > The main issue that I encountered was that BC doesn't support arrays > of zero size, used in IAX.C to define the end of the IAX header. Yup, I had this problem too. I noticed I *could use* zero size arrays in structures in C++ files (.cc). So, I decided to #include "iax.c" into a IAXWrapper.cc file, and to my amazement it now compiles without error. IMHO this is a Borland C flaw, but it has some considerable and undesirable side effects... Apart from the "zero size array within struct" problem, there were a great many other issues, which prevented me from successfully compiling and linking a .dll file which suits Borland C++. Problem with wrapping the files is that you end up wrapping all files in a C++ wrapper, causing a whole bunch of other errors. One problem which occurred often was C++ choking on less strongly type-d code. Especially "illegal" pointer conversions, function prototyping etc.. One reason for some problems which occurred could be that I may have faulty preproccesing macros. I would like to know which macros you have suppied to Borland C++ to compile your code. As I said before, I have been able to compile and link the libiaxclient code into my application, but I had to do a sh*tload editing on the libiaxclient stuff (including gsm, portaudio and what not) before I could use it :-( Somehow, I just feel the port should be possible without so much rework. There should be a neater way of creating a Borland C++ project, comprising of several .dll files (say one for each lib (gsm, speex, portaudio, portmixer, libiaxclient), compiling only those files as C++ as needed by the "zero size array in struct" problem and compiling the rest with C as would be normally required. This way, modifications would not be needed as newer versions of the libs are released. Kind regards, Eloy Domingos > Other issue was that some files in different directories have the > same name, which results in the linker disregarding the second file > from the link. > > -----Original Message----- > From: iax...@li... > [mailto:iax...@li...] On Behalf Of > Eloy Domingos Sent: quarta-feira, 21 de abril de 2004 07:21 To: > iax...@li... Subject: [Iaxclient-devel] > Creating iaxclient .dll for Borland C++ > > Hi All, > > I was wondering whether anyone has been able to successfully create a > win32 .dll file for Borland C++ enterprise developer, without altering > the iaxclient lib sources. If so, I would like to know how this was > achieved (project/unit settings, compiler/linker configuration). > > I have been able to use iaxclientlib with some success in my IAX2 > softphone client, but I had to modify the iaxclient lib and various > other libraries (gsm, speex, portaudio), in order to compile/link > them into my application. Instead of this, I would prefer a cleaner interface > > between my application and the libiaxclient suite by compiling it > into a .dll (with typelib info). > > Any pointers or info will be appreciated. > > Thanks in advance, > Eloy Domingos > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Iaxclient-devel mailing list Iax...@li... > https://lists.sourceforge.net/lists/listinfo/iaxclient-devel > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Iaxclient-devel mailing list Iax...@li... > https://lists.sourceforge.net/lists/listinfo/iaxclient-devel Vocalis Internet Open WebMail (https://webmail.vocalisinternet.com) ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297 _______________________________________________ Iaxclient-devel mailing list Iax...@li... https://lists.sourceforge.net/lists/listinfo/iaxclient-devel |
From: Eloy D. <elo...@vo...> - 2004-04-26 09:09:24
|
Hi Alejandro, When I successfully compile and link a cygwin .dll file I get something like: COFF type .dll not compatible with Borland C++ ... Kind regards Eloy Domingos On Wed, 21 Apr 2004 15:04:04 +0200, alex wrote > On Wed, Apr 21, 2004 at 01:35:38PM +0200, Eloy Domingos wrote: > > Hi Alex, > > > > > > Hmm I already tried the CygWin option. It produces a .dll, > > but it seems not to be compatible (COFF type lib) with Borland C++ :-( > > > > Did you actually link or use the .dll with a Borland C++ app? > > Hum, no :( > I'm using gcc, VC++ and VB, and no problems at all. > > What error give you? > > -- > Alejandro Escanero Blanco > Administrador Sistemas CEC. Vocalis Internet Open WebMail (https://webmail.vocalisinternet.com) |