]> git.lyx.org Git - lyx.git/blob - sigc++/doc/FAQ
export patch from Dekel
[lyx.git] / sigc++ / doc / FAQ
1 This is a list of questions and answers that I have collected from
2 messages to my mailbox
3
4 --------------------------------------------------------------------- 
5
6 Q: Why isn't sigc++config.h installed with the rest of the headers?
7
8 A: Traditionally include files that are dependent on the compiler
9    or srchitecture belong under lib trees and not the include tree.
10    This allows machines to share include directories on large multiuser
11    systems.
12
13    Examples:
14      /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.57/include 
15      /usr/lib/glib/include
16      /usr/lib/qt/include
17
18    To access that file you should include a -I PREFIX/lib/sigc++/include
19    in your compiler switchs.
20
21    This can be done for you automatically through the use of 
22    the sigc-config script.  
23
24      c++ myfile.cc `sigc-config --cflags --libs`
25
26    Last, if you really don't like this just symlink the file into
27    PREFIX/include.  (Don't copy or the next version of libsigc++ 
28    very likely won't work right!) 
29
30 Q: Why on Visual C++ can do I get piles of errors when trying to
31    use classes which contain Signals?  
32
33 A: Visual C++ requires all classes which are parameterized to be
34    explicitely exported.  This is the same problem encountered 
35    when using STL classes in VC++.  Microsoft Knowledge Base
36    article Q168958 contains the solution.
37
38    (http://support.microsoft.com/support/kb/articles/Q168/9/58.ASP)
39
40    You will need to create an export file with all the signals,
41    slots, and parameterized functions explicitely instantiated
42    and include it in your library source.  (Anyone have an example
43    of this?)
44