Re: CAN'T OPEN DLL

Abdelouahed Hanafi <[email protected]>
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <[email protected]>
Here is the module

main
define    nombre    integer
database sysdata
select count(*) into nombre from tablester
display nombre

end main



Compile time OK
Runtime ERROR

The program runned OK on a 32 bits machine and is now transferred to a 64 bit machine

> Date: Tue, 30 Jul 2013 12:30:21 +0100
> Subject: Re: [Aubit4gl-discuss] CAN'T OPEN DLL
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> 
> Looks like a Mingw issue..
> Are you able to compile a simple C program ?
> Does your 4gl have a "main" ? (are you sure you're linking it into the
> executable ? )
> Are you compile a single module which is part of a larger program ?
> (if so - if you are compiling separately - you need to compile all the
> modules with "-c" - then link them all into the executable)
> 
> 
> On 30 July 2013 12:06, Abdelouahed Hanafi <[email protected]> wrote:
> > Modified PATH variable
> >
> > During COMPILATION I got
> >
> > c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../libmingw32.a(main.o): In
> > function `main':
> > C:\MinGW\msys\1.0\src\mingwrt/../mingw/main.c:73: undefined reference to
> > `WinMain@16'
> > collect2: ld a retourné 1 code d'état d'exécution
> >
> > Thanks
> >
> >
> >> Date: Tue, 30 Jul 2013 12:00:09 +0100
> >> Subject: Re: [Aubit4gl-discuss] CAN'T OPEN DLL
> >
> >> From: [email protected]
> >> To: [email protected]
> >> CC: [email protected]
> >>
> >> On Windows - it doesn't use LD_LIBRARY_PATH - windows uses PATH instead..
> >>
> >>
> >> On 30 July 2013 11:50, Abdelouahed Hanafi <[email protected]> wrote:
> >> > Hi
> >> >
> >> > Executing a test progam.
> >> > Got the message : Can't open DLL : plugins-1.2_33/libSQL_esql.dll
> >> > The DLL is present at the right place and LD_LIBRARY8PATH is set
> >> > LD_LIBRARY_PATH C:\Program Files\IBM Informix Software
> >> > Bundle\lib;c:\AUBIT\plugins-1.2_33
> >> >
> >> > Something wrong ?
> >> > Thank you for help
> >> >
> >> > ________________________________
> >> > Date: Thu, 18 Jul 2013 18:15:29 +0100
> >> > Subject: Re: [Aubit4gl-discuss] Could not connect to INFORMIX database
> >> > From: [email protected]
> >> > To: [email protected]
> >> > CC: [email protected]
> >> >
> >> > Can you connect using the informix dbaccess ?
> >> >
> >> > On 18 Jul 2013 17:53, "Abdelouahed Hanafi" <[email protected]> wrote:
> >> >
> >> > HI,
> >> > I've just installed INFORMIX Server 12.10 from IBM.
> >> > Using Informix DBIMPORT utility, I've created a MYTEST database from old
> >> > exported data.
> >> > DBACCESS and SQL scripts work well.
> >> > With AUBIT compiler , the next program fails to compile :
> >> >
> >> > database mytest
> >> > main
> >> >
> >> > end main
> >> >
> >> > Error at line 2, character 4
> >> > | Could not connect to database mytest (The INFORMIXSERVER value is not
> >> > listed in the sqlhosts file or the Registry.) (main)
> >> >
> >> > I set the environmemt variable INFORMIXSERVER to the appropriate value
> >> > and A4GL_SQLTYPE to ESQL
> >> >
> >> > Thank you for your help.
> >> >
> >> >
> >> >
> >> > ------------------------------------------------------------------------------
> >> > See everything from the browser to the database with AppDynamics
> >> > Get end-to-end visibility with application monitoring from AppDynamics
> >> > Isolate bottlenecks and diagnose root cause in seconds.
> >> > Start your free trial of AppDynamics Pro today!
> >> >
> >> > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> >> > _______________________________________________
> >> > Aubit4gl-discuss mailing list
> >> > [email protected]
> >> > https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
> >> >
> >> >
> >> >
> >> > ------------------------------------------------------------------------------
> >> > Get your SQL database under version control now!
> >> > Version control is standard for application code, but databases havent
> >> > caught up. So what steps can you take to put your SQL databases under
> >> > version control? Why should you start doing it? Read more to find out.
> >> >
> >> > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> >> > _______________________________________________
> >> > Aubit4gl-discuss mailing list
> >> > [email protected]
> >> > https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
> >> >
> >
> > ------------------------------------------------------------------------------
> > Get your SQL database under version control now!
> > Version control is standard for application code, but databases havent
> > caught up. So what steps can you take to put your SQL databases under
> > version control? Why should you start doing it? Read more to find out.
> > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Aubit4gl-discuss mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
> >

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk

_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.