Thanks again Peter.
I made your suggested changes and as a result compilation ended
successfully, however I am getting linking errors now all on
"unresolved external symbol" as follows (truncated so save email space):
----------------------------------------------------------
Compiling in progress. Please wait...
compiling...
linking...
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
lpsolve.obj matlab.obj hash.obj lp_explicit.lib
Creating library
C:DOCUME~1ADMINI~1LOCALS~1Tempmex_VeYBtMtemplib.x and object
C:DOCUME~1ADMINI~1LOCALS~1Tempmex_VeYBtMtemplib.exp
lpsolve.obj : error LNK2019: unresolved external symbol putabortfunc
referenced in function create_handle
lpsolve.obj : error LNK2019: unresolved external symbol
__set_outputfile referenced in function create_handle
lpsolve.obj : error LNK2019: unresolved external symbol putlogfunc
referenced in function create_handle
-
-
- (I truncated similar errors)
-
-
lpsolve.obj : error LNK2019: unresolved external symbol
init_lpsolve_lib referenced in function mainloop
lpsolve.obj : error LNK2019: unresolved external symbol __set_obj
referenced in function impl_set_obj
mxlpsolve.mexw64 : fatal error LNK1120: 204 unresolved externals
C:PROGRA~1MATLABR2008ABINMEX.PL: Error: Link of
'mxlpsolve.mexw64' failed.
??? Error using ==> mex at 207
Unable to complete successfully.
Error in ==> Makefile64 at 66
eval(['mex ' '-largeArrayDims' ' lpsolve' objext ' matlab' objext '
hash' objext ' ' libs '
-output mxlpsolve']);
----------------------------------------------------------
Please help again.
Thanks and regards,
shaheen
--- In lp_solve%40yahoogroups.com">lp_solve
yahoogroups.com, "Peter Notebaert" <_peno_
...> wrote:
>
> Apparently your C compiler does not define WIN32. Because of that the
> sources act as if they are compiled for unix with those compilation
error.
> Try the following:
>
> Edit Makefile64 and locate the entry -D_WINDOWS
> Add there -DWIN32 with spaces before and after and then try again.
>
> Peter
>
> On Tue, Jun 10, 2008 at 2:22 AM, shaheenn <shaheenn
...> wrote:
>
> > Thanks, Peter! Sorry for the insufficient info. I am using 64 bit
> > Matlab(r2008a) and 64 bit C/C++ compiler on Athlon x2 6400+ machine. I
> > am getting compilation error as follows:
> >
> > ----------------------------------------------------------
> > Compiling in progress. Please wait...
> > compiling...
> > lpsolve.c
> > c:sourcelp_lib.h(214) : fatal error C1083: Cannot open include file:
> > 'dlfcn.h': No such file or directory
> >
> > C:PROGRA~1MATLABR2008ABINMEX.PL: Error: Compile of 'lpsolve.c'
> > failed.
> >
> > ??? Error using ==> mex at 207
> > Unable to complete successfully.
> >
> > Error in ==> Makefile64 at 64
> > eval(['mex ' '-largeArrayDims' debug ' -D_WINDOWS -DMATLAB
> > -DINLINE=static -I' lpsolvepath ' '
> > lpsolvelibpath ' -c ' what]);
> >
> > ------------------------------------------------
> >
> > I would appreciate your kind help.
> >
> > Best regards,
> > shaheen
> >
> > --- In lp_solve%40yahoogroups.com">lp_solve
yahoogroups.com <lp_solve%40yahoogroups.com>, "Peter
> > Notebaert" <_peno_
> wrote:
> > >
> > > It is not because your XP is 64-bit that the application is 64-bit.
> > Do you have a 64-bit MATLAB version? If not and this 32-bit then you
> > must use the 32-bit lpsolve also.
> > > If it is 64-bit MATLAB version then you will need a 64 bit compiler.
> > Apparently you have but you don't specify what error you get. Do you
> > get a compilation/link error of some kind?
> > >
> > > Peter
> > >
> > >
> > > Sent: Friday, June 06, 2008 03:52
> > > To: lp_solve%40yahoogroups.com">lp_solve
yahoogroups.com <lp_solve%40yahoogroups.com&