<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Old Discussions [ReadOnly]</title><link href="https://sourceforge.net/p/orclib/discussion/" rel="alternate"/><link href="https://sourceforge.net/p/orclib/discussion/feed.atom" rel="self"/><id>https://sourceforge.net/p/orclib/discussion/</id><updated>2016-04-29T11:00:22.075000Z</updated><subtitle>Recent posts to Old Discussions [ReadOnly]</subtitle><entry><title>./configure error</title><link href="https://sourceforge.net/p/orclib/discussion/470800/thread/ff611e0c/?limit=25#5694/c615" rel="alternate"/><published>2016-04-29T11:00:22.075000Z</published><updated>2016-04-29T11:00:22.075000Z</updated><author><name>Vincent Rogier</name><uri>https://sourceforge.net/u/userid-1278609/</uri></author><id>https://sourceforge.net99c7b480eb1678ac0bcbb26e1a28ad1ede64b7ea</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have had similar situation...&lt;br/&gt;
Using "./configure --with-oracle-headers-path=..." solve my problem (&lt;strong&gt;not&lt;/strong&gt; --with-oracle-home) &lt;/p&gt;
&lt;p&gt;You have exactly check  values of all 'ORACLE's  variables by executing:&lt;/p&gt;
&lt;p&gt;echo $&lt;strong&gt;ORACLE_HOME&lt;/strong&gt;&lt;br/&gt;
echo $&lt;strong&gt;LD_LIBRARY_PATH&lt;/strong&gt;&lt;br/&gt;
echo $&lt;strong&gt;PATH&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;and INCLUDE-path, reffered  by key  &lt;strong&gt;--with-oracle-home!&lt;/strong&gt; (one of my errors was long-defis substituted by editor instead of --). Please, read carefully man for &lt;strong&gt;./configure &lt;/strong&gt;and  &lt;a href="http://vrogier.github.io/ocilib/doc/html/group___ocilib_c_api_installation.html" rel="nofollow"&gt;http://vrogier.github.io/ocilib/doc/html/group___ocilib_c_api_installation.html&lt;/a&gt; &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>./configure error</title><link href="https://sourceforge.net/p/orclib/discussion/470800/thread/ff611e0c/" rel="alternate"/><published>2016-04-18T07:12:20.910000Z</published><updated>2016-04-18T07:12:20.910000Z</updated><author><name>Vincent Rogier</name><uri>https://sourceforge.net/u/userid-1278609/</uri></author><id>https://sourceforge.net973f4761a8d6ddad821bd135c9c82eff49026d58</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please &lt;a class="" href="https://github.com/vrogier/ocilib/issues" rel="nofollow"&gt;Github issue tracker &lt;/a&gt; instead.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vincent&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>./configure error</title><link href="https://sourceforge.net/p/orclib/discussion/470800/thread/ff611e0c/" rel="alternate"/><published>2016-04-17T05:37:30.402000Z</published><updated>2016-04-17T05:37:30.402000Z</updated><author><name>Vincent Rogier</name><uri>https://sourceforge.net/u/userid-1278609/</uri></author><id>https://sourceforge.netf60efc04046a029c4c695ccbbeb969eb74e52c70</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;br/&gt;
I got a problem like this,but it doesnot work succes when I get your idea.Can you give me another advice.&lt;br/&gt;
Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>GCC OCILIB App Crashing: c0000005</title><link href="https://sourceforge.net/p/orclib/discussion/470800/thread/180c7e47/?limit=25#aa42/d116" rel="alternate"/><published>2016-01-25T08:09:43.418000Z</published><updated>2016-01-25T08:09:43.418000Z</updated><author><name>Vincent Rogier</name><uri>https://sourceforge.net/u/userid-1278609/</uri></author><id>https://sourceforge.net229309a38cfe236319f560a79c10d3782a5b9e10</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;is there always the issue on Windows 64 library.&lt;br/&gt;
I am using OCILIB (ocilib-4.1.0-windows) with MYSYS.&lt;br/&gt;
It is working fine with 32bit version.&lt;br/&gt;
When I try to compile with 64bit version (and pointing on the 64 lib version provided in ocilib-4.2.0-windows.zip), I get the following error on each call of OCI function&lt;br/&gt;
...ocilib/lib64/ociliba.lib(ociliba.dll.b):(.text+0x2): relocation truncated to fit: R_X86_64_32 against symbol `__imp_OCI_ConnectionFree' defined in .idata$5 section in ../ocilib/lib64/ociliba.lib(ociliba.dll.b)&lt;/p&gt;
&lt;p&gt;After research on internet, I add the parameter -mcmodel=medium to gcc line without success.&lt;/p&gt;
&lt;p&gt;I am using the follwoing gcc parameter:&lt;br/&gt;
-g -m64 -std=c99 -mcmodel=medium -I. &lt;code&gt;pkg-config --cflags libxml-2.0&lt;/code&gt; &lt;code&gt;pkg-config --cflags gtk+-3.0&lt;/code&gt; -IC:/ocilib/include&lt;/p&gt;
&lt;p&gt;Option of the gcc link:&lt;br/&gt;
-g &lt;code&gt;pkg-config --libs libxml-2.0&lt;/code&gt; &lt;code&gt;pkg-config --libs gtk+-3.0&lt;/code&gt; -LC:/ocilib/lib64 -lociliba&lt;/p&gt;
&lt;p&gt;Version of gcc used:&lt;br/&gt;
$ gcc -v&lt;br/&gt;
Using built-in specs.&lt;br/&gt;
COLLECT_GCC=gcc&lt;br/&gt;
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-msys/4.9.2/lto-wrapper.exe&lt;br/&gt;
Target: x86_64-pc-msys&lt;br/&gt;
Configured with: /msys_scripts/gcc/src/gcc-4.9.2/configure --build=x86_64-pc-msys --prefix=/usr --libexecdir=/usr/lib --enable-bootstrap --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --with-arch=x86-64 --disable-multilib --with-tune=generic --enable-__cxa_atexit --with-dwarf2 --enable-languages=c,c++,fortran,lto --enable-graphite --enable-threads=posix --enable-libatomic --enable-libgomp --disable-libitm --enable-libquadmath --enable-libquadmath-support --enable-libssp --disable-win32-registry --disable-symvers --with-gnu-ld --with-gnu-as --disable-isl-version-check --enable-checking=release --without-libiconv-prefix --without-libintl-prefix --with-system-zlibThread model: posix&lt;br/&gt;
gcc version 4.9.2 (GCC)&lt;/p&gt;
&lt;p&gt;Is it an known issue on Windows 64 bit version?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Cannot create OCI environment</title><link href="https://sourceforge.net/p/orclib/discussion/470800/thread/f60ece30/" rel="alternate"/><published>2015-09-16T01:57:41.073000Z</published><updated>2015-09-16T01:57:41.073000Z</updated><author><name>Vincent Rogier</name><uri>https://sourceforge.net/u/userid-1278609/</uri></author><id>https://sourceforge.net5d5d876e08e8cbdbc371e5ddf02c96e0b4a79083</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;do you solve the problem ? I have the same problem as problem, Thank you for any help&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Got compiling error when try to build OCILIB on Windows(vs2010) using the provided source code (latest version 4.1.0)</title><link href="https://sourceforge.net/p/orclib/discussion/470800/thread/b65f62d9/" rel="alternate"/><published>2015-09-13T22:32:57.986000Z</published><updated>2015-09-13T22:32:57.986000Z</updated><author><name>Vincent Rogier</name><uri>https://sourceforge.net/u/userid-1278609/</uri></author><id>https://sourceforge.net85043dd7530a5f231dc5fdab8a028ed1812b0838</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you try with latest sources ?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vincent&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Got compiling error when try to build OCILIB on Windows(vs2010) using the provided source code (latest version 4.1.0)</title><link href="https://sourceforge.net/p/orclib/discussion/470800/thread/b65f62d9/" rel="alternate"/><published>2015-08-26T20:40:07.416000Z</published><updated>2015-08-26T20:40:07.416000Z</updated><author><name>Vincent Rogier</name><uri>https://sourceforge.net/u/userid-1278609/</uri></author><id>https://sourceforge.net4db0739e43692de407f2b49b342d2327d430157f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When I try to build the dynamic library of ocilib using Windows Visual Studio 2010, I got some compiling error for some of the &lt;em&gt;.c files (object.c, lob.c, and library.c): like:&lt;br/&gt;
....\src\object.c(1096): error C2143: syntax error : missing ';' before 'type'&lt;br/&gt;
....\src\object.c(1096): error C2065: 'index' : undeclared identifier&lt;br/&gt;
....\src\object.c(1133): error C2143: syntax error : missing '{' before '&lt;/em&gt;'&lt;br/&gt;
....\src\object.c(1168): error C2371: 'OCI_ObjectGetColl' : redefinition; different basic types&lt;br/&gt;
          D:\Oracle_OciLib\ocilib\include\ocilib.h(12756) : see declaration of 'OCI_ObjectGetColl'&lt;/p&gt;
&lt;p&gt;Any suggestion on correcting this? Or did I miss something?&lt;/p&gt;
&lt;p&gt;Thanks a lot,&lt;br/&gt;
J. C&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bind Using OCI_BAM_INTERNAL</title><link href="https://sourceforge.net/p/orclib/discussion/470800/thread/ded30412/" rel="alternate"/><published>2015-08-23T14:03:40.271000Z</published><updated>2015-08-23T14:03:40.271000Z</updated><author><name>Vincent Rogier</name><uri>https://sourceforge.net/u/userid-1278609/</uri></author><id>https://sourceforge.net4140ad005ea071235c997ab836bffb5c66a56c5f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Variables that are used for binding must exist and be accessible when OCI_Execute() is called.&lt;br/&gt;
In your example, n and n2 are local variable of method binda(). Thus, when binda() return they do not exists and the program crashes as it attempts to access non reachable memory.&lt;br/&gt;
When using internal allocation mode, you must pass null pointers to bind functions. &lt;/p&gt;
&lt;p&gt;Thus:&lt;br/&gt;
- when using external allocation mode (default), provide valid addresses for the life time of a prepared statement (until it is freed or until it is re-prepared)&lt;br/&gt;
- when using internal allocation mode, pass null pointers.&lt;/p&gt;
&lt;p&gt;btw, OCILIB has moved to Github. Please use the Github tracker instead of SF resources.&lt;/p&gt;
&lt;p&gt;thanks :)&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;vincent&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bind Using OCI_BAM_INTERNAL</title><link href="https://sourceforge.net/p/orclib/discussion/470800/thread/ded30412/" rel="alternate"/><published>2015-08-23T13:31:23.215000Z</published><updated>2015-08-23T13:31:23.215000Z</updated><author><name>Vincent Rogier</name><uri>https://sourceforge.net/u/userid-1278609/</uri></author><id>https://sourceforge.net1470c8f0b926ca4a13e41f7f9cd297c372d1b41e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;HI,&lt;br/&gt;
I am trying to bind some variable to the statement and this is my sample&lt;br/&gt;
coede below:&lt;/p&gt;
&lt;p&gt;void binda(    OCI_Statement &lt;em&gt;st)&lt;br/&gt;
{&lt;br/&gt;
    {&lt;br/&gt;
        int n = 0,n2 =1;&lt;br/&gt;
        OCI_BindInt(st,"res",&amp;amp;n);&lt;br/&gt;
        OCI_BindInt(st,"p1",&amp;amp;n2);&lt;br/&gt;
    }&lt;br/&gt;
}&lt;br/&gt;
int main(void)&lt;br/&gt;
{&lt;br/&gt;
    OCI_Connection &lt;/em&gt;cn;&lt;br/&gt;
    OCI_Statement &lt;em&gt;st;&lt;br/&gt;
    OCI_Resultset&lt;br/&gt;
&lt;/em&gt;rs;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;if (!OCI_Initialize(NULL, NULL, OCI_ENV_DEFAULT | OCI_ENV_THREADED
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;|OCI_ENV_CONTEXT))&lt;br/&gt;
        return EXIT_FAILURE;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;cn = OCI_ConnectionCreate("db", "usr", "pwd", OCI_SESSION_DEFAULT);

st = OCI_StatementCreate(cn);

OCI_SetBindAllocation(st,OCI_BAM_INTERNAL);

OCI_Prepare(st, "begin  :res := func( :p1); end;");

binda(st);
OCI_Execute(st); /******** If I use OCI_BAM_EXTERNAL  it crashes after
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;calling this function*/&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;OCI_StatementFree(st);  /******** If I use OCI_BAM_INTERNAL it crashes
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;after calling this function*/&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;OCI_Cleanup();

return EXIT_SUCCESS;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;please help me how to bind variable not on the stack.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>OCI_GetResultset still generate memory leak in 3.12.1</title><link href="https://sourceforge.net/p/orclib/discussion/470800/thread/71c896c0/" rel="alternate"/><published>2015-08-17T06:35:59.240000Z</published><updated>2015-08-17T06:35:59.240000Z</updated><author><name>Vincent Rogier</name><uri>https://sourceforge.net/u/userid-1278609/</uri></author><id>https://sourceforge.net8d36f2335f8a1f8a83b6b45acdd0d16228935e89</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is this memory leak problem solved?&lt;br/&gt;
OCI_CHARSET_WIDE&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>