I used the example (yourcode.cpp, Makefile) found on <a href="http://trac.openmicroscopy.org.uk/omero/wiki/OmeroCpp" target="_blank">http://trac.openmicroscopy.org.uk/omero/wiki/OmeroCpp</a> and got it to compile correctly.<br>

<br>However, now I&#39;m trying a different cpp file that I got from <a href="http://trac.openmicroscopy.org.uk/omero/wiki/OmeroClients?onlycpp" target="_blank">http://trac.openmicroscopy.org.uk/omero/wiki/OmeroClients?onlycpp</a><br>


<br>On my desktop, I have api_test.cpp and Makefile. Also on the desktop is the omero folder I got from SVN with the libraries. When I type make api_test, I get the following error (this is only the first few lines):<br>

<br>&gt; make api_test<br>g++  -c -o api_test.o api_test.cpp -I/Users/nperry/Desktop/omero/dist/include -I/Library/Ice-3.3.1:/include <br>In file included from /Users/nperry/Desktop/omero/dist/include/omero/client.h:12,<br>

                 from api_test.cpp:9:<br>/Users/nperry/Desktop/omero/dist/include/omero/API.h:16:30: error: Ice/LocalObjectF.h: No such file or directory<br>/Users/nperry/Desktop/omero/dist/include/omero/API.h:17:24: error: Ice/ProxyF.h: No such file or directory<br>

/Users/nperry/Desktop/omero/dist/include/omero/API.h:18:25: error: Ice/ObjectF.h: No such file or directory<br>/Users/nperry/Desktop/omero/dist/include/omero/API.h:19:27: error: Ice/Exception.h: No such file or directory<br>

/Users/nperry/Desktop/omero/dist/include/omero/API.h:20:29: error: Ice/LocalObject.h: No such file or directory<br>/Users/nperry/Desktop/omero/dist/include/omero/API.h:21:23: error: Ice/Proxy.h: No such file or directory<br>

/Users/nperry/Desktop/omero/dist/include/omero/API.h:22:24: error: Ice/Object.h: No such file or directory<br><br><b>Here is my Makefile:</b><br>
#                                                                                                   <br># MAKEFILE:                                                                                         <br>#                                                                                                   <br>

# Where the OMERO distribution was installed                                                        <br>OMERO_DIST?=/Users/nperry/Desktop/omero/dist<br><br># Where the Ice lib/ and include/ directories are to be found                                       <br>

ICE_HOME?=/Library/Ice-3.3.1<br><br>INCLUDES=-I$(OMERO_DIST)/include -I$(ICE_HOME)/include<br><br>LIBS=-L$(OMERO_DIST)/lib -L$(ICE_HOME)/lib -L$(ICE_HOME)/lib64 \<br>     -lIce -lIceUtil -lGlacier2 -lomero_client -lstdc++<br>

<br>LIBPATH=$(DYLD_LIBRARY_PATH):$(ICE_HOME)/lib:$(ICE_HOME)/lib64:$(OMERO_DIST)/lib<br><br>.PHONY: clean run<br><br>api_test.o: api_test.cpp<br>        $(CXX) $(CXXFLAGS) -c -o $@ $&lt; $(INCLUDES)<br><br>api_test: api_test.o<br>

        $(CXX) -o $@ $^ $(LIBS)<br><br>run:  api_test<br><br><b>And here is the cpp file (literally, this is copied directly from the site above):<br></b>#include &lt;iostream&gt;<br>#include &lt;omero/client.h&gt;<br>#include &lt;omero/RTypesI.h&gt;<br>

#include &lt;omero/sys/ParametersI.h&gt;<br><br>using namespace omero::rtypes;<br>int main(int argc, char* argv[]) {<br>    omero::client client(&quot;localhost&quot;);<br>    omero::api::ServiceFactoryPrx sf = client.createSession(&quot;nick&quot;, &quot;omero&quot;);<br>

    omero::api::IQueryPrx q = sf-&gt;getQueryService();<br>    std::string query_string = &quot;select i from Image i where <a href="http://i.id">i.id</a> = :id and name like :namedParameter&quot;;<br>    omero::sys::ParametersIPtr p = new omero::sys::ParametersI();<br>

    p-&gt;add(&quot;id&quot;, rlong(1L));<br>    p-&gt;add(&quot;namedParameter&quot;, rstring(&quot;cell%mit%&quot;));<br>    omero::api::IObjectList results = q-&gt;findAllByQuery(query_string, p);<br>    client.closeSession();<br>

    return 0;<br>}<br><b><br></b>Should this all be working? I&#39;m not asking that you figure out if I have directory issues or path name errors, but if you look at the CPP code above (again, provided here: <a href="http://trac.openmicroscopy.org.uk/omero/wiki/OmeroClients?onlycpp">http://trac.openmicroscopy.org.uk/omero/wiki/OmeroClients?onlycpp</a>) and that makefile, should everything be working?<br>

<br>Thanks<br>Nick<br>