Debian Codegraph @

ipl/packs/loadfuncpp/doc/compile.htm

raw
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3
4 <HEAD>
5 <META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">
6 <TITLE>loadfuncpp</TITLE>
7 <LINK REL="stylesheet" TYPE="text/css" HREF="loadfuncpp.css">
8 </HEAD>
9
10 <BODY>
11
12 <H3></H3>
13 <CENTER>
14 <P>
15 <TABLE BORDER="0" WIDTH="700">
16 <TR>
17 <TD WIDTH="100%">
18 <H1 ALIGN="CENTER"><BR>
19 Loadfuncpp</H1>
20 <H2 ALIGN="CENTER">Compiler Options</H2>
21 <H3 ALIGN="CENTER">Carl Sturtivant, January 2009</H3>
22 <BLOCKQUOTE>
23 <BLOCKQUOTE>
24 <P>When compiling a shared object (or dll) to dynamically load functions into Icon via loadfuncpp, try the following
25 compilation options, which have been successfully used to build libraries with version 0.91alpha on the systems
26 below. <BR>
27 <BR>
28 Everything is simplest if all shared objects are placed in the icon/bin directory and all linkable Icon (.u1/.u2
29 files) are placed in the icon/lib directory.
30 </BLOCKQUOTE>
31 <H2>Linux</H2>
32 <P><FONT SIZE="2" COLOR="black" FACE="Courier New, Courier">g++ -fPIC -shared -o </FONT><I><FONT SIZE="2" FACE="Courier New, Courier">file</FONT></I><FONT
33 SIZE="2" COLOR="black" FACE="Courier New, Courier">.so </FONT><I><FONT SIZE="2" FACE="Courier New, Courier">file</FONT></I><FONT
34 SIZE="2" COLOR="black" FACE="Courier New, Courier">.cpp</FONT></P>
35 <H2>Cygwin</H2>
36 <P><FONT SIZE="2" COLOR="black" FACE="Courier New, Courier">g++ -shared -o </FONT><I><FONT SIZE="2" FACE="Courier New, Courier">file</FONT></I><FONT
37 SIZE="2" COLOR="black" FACE="Courier New, Courier">.so </FONT><I><FONT SIZE="2" FACE="Courier New, Courier">file</FONT></I><FONT
38 SIZE="2" COLOR="black" FACE="Courier New, Courier">.cpp </FONT><I><FONT SIZE="2" FACE="Courier New, Courier">iload_so_directory</FONT></I><FONT
39 SIZE="2" COLOR="black" FACE="Courier New, Courier">/iload.a</FONT></P>
40 <H2>Macintosh</H2>
41 <P><FONT SIZE="2" COLOR="black" FACE="Courier New, Courier">g++ -flat_namespace -bundle -undefined suppress -o
42 </FONT><I><FONT SIZE="2" FACE="Courier New, Courier">file</FONT></I><FONT SIZE="2" COLOR="black" FACE="Courier New, Courier">.so
43 </FONT><I><FONT SIZE="2" FACE="Courier New, Courier">file</FONT></I><FONT SIZE="2" COLOR="black" FACE="Courier New, Courier">.cpp</FONT>
44 <H2>Solaris</H2>
45 <P><FONT SIZE="2" COLOR="black" FACE="Courier New, Courier">g++ -fPIC -shared -o </FONT><I><FONT SIZE="2" FACE="Courier New, Courier">file</FONT></I><FONT
46 SIZE="2" COLOR="black" FACE="Courier New, Courier">.so </FONT><I><FONT SIZE="2" FACE="Courier New, Courier">file</FONT></I><FONT
47 SIZE="2" COLOR="black" FACE="Courier New, Courier">.cpp</FONT>
48 </BLOCKQUOTE>
49 </TD>
50 </TR>
51 </TABLE>
52
53 </CENTER>
54
55 </BODY>
56
57 </HTML>