From: John L. <jla...@gm...> - 2006-01-04 14:35:20
|
> >>How do you normally solve this in steexprt.cpp on Linux? > >> > >>#include "../../contrib/src/stc/scintilla/include/Platform.h" // for > >>PRectangle > >>#include "../../contrib/src/stc/scintilla/include/PropSet.h" // for SS= tring > >> > >>I just put the complete path now ( to where my wxWidgets is ), i see n= o > >>other way? > > > >Doesn't it work as is? It's a relative path that's based on > >$(WXWIN)/include for MSW or the prefix from wx-config for gmake. > > I normally install wxWidgets before using it. So i use it from /usr/loc= al. > But those files are not installed there. > It seems you do not install wxWidgets, and use wx-config straight from > the distribution, where those files of course are available. Right, I just use it directly from the CVS tree. > For general users i think it should work at least in the first case. > So we need to find a way to get those files, or mention where they > should be found. I didn't realize this at all. Maybe I can just forward declare them at the top of stexprt.cpp file. > I think it is wrong how wxWidgets is using thirdparty ( scintilla and > expat ), they hide it, making it impossible for us (making extra libs) > to do the same as them. > Making such thirdparty libs part of wxWidgets is fine, but choosing > between a central or local installed thirdparty library, should not be > different. > Or at least all thirdparty header files should be installed. I agree, I'm guessing that they will probably say that those files and libraries are internal and there's no need to use them. What I did in the export file was directly copy the code in scite (licence is ok to do this) and try to modify as little as possible to make it easy for me to get any updates from them. I will see if I can remove the #includes and just delcare the classes themselves. I asked on wx-users about a wxString type class for ansi C (even if wxWidgets is unicode) since the SString classes used by scintilla is not trivial and I'd hate to start to get version problems for different scintilla versions (eg. wxWidgets versions). Regards, John Labenski |