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 |