[Gdal-dev] errors compiling on Win2K

Thom DeCarlo T.R.DeCarlo at larc.nasa.gov
Mon Nov 17 14:54:04 EST 2003


Nevermind, I found it.

The problem was the "Use run-time library" setting in the libjasper project.
It was set to "Single Threaded" and "Debug Single Threaded". After changing
that to "Multithreaded DLL" and "Debug Multithreaded DLL" and recompiling I
was able to successfully build GDAL. This setting was the same in both the
version "jasper-1.700.2" that I was originally using and the
"jasper-1.700.5.uuid" that I found referenced in the GDAL online
documentation (http://www.remotesensing.org/gdal/frmt_jpeg2000.html).

Also, there were a few more files in the ogr_fmts\s57 that were missing from
the makefiles. I changed the makefile.vc to look like this...


OBJ	=	ogrs57driver.obj ogrs57datasource.obj ogrs57layer.obj \
		s57classregistrar.obj s57reader.obj ddfrecordindex.obj \
		s57featuredefns.obj \
            s57dump.obj s57filecollector.obj s57writer.obj


Thom


-----Original Message-----
From: gdal-dev-admin at remotesensing.org
[mailto:gdal-dev-admin at remotesensing.org]On Behalf Of Thom DeCarlo
Sent: Monday, November 17, 2003 12:09 PM
To: gdal-dev at remotesensing.org
Subject: RE: [Gdal-dev] errors compiling on Win2K

Well, I'm still getting the same errors after downloading today's cvs
snapshot (031117). Can anyone help me out here?

Thanks,
Thom

-----Original Message-----
From: Thom DeCarlo
Sent: Friday, November 14, 2003 3:06 PM
To: GDAL developers
Subject: [Gdal-dev] errors compiling on Win2K

I grabbed the latest cvs (031114) and compiling with OGR formats gives a lot
of errors when linking the gdal11.dll. Any ideas what needs to change to
make this work?
OBTW, I'm using VC++ 6 SP5 and Win2K SP4.


        link /dll /debug /INCLUDE:_OCTNewCoordinateTransformation
/INCLUDE:_OGRRegisterAll  /INCLUDE:_OGRFeatureStylePuller
/INCLUDE:_OSRValidate  /INCLUDE:_OPTGetProjectionMethods
/INCLUDE:_OGR_G_GetPointCount /INCLUDE:_GDALSimpleImageWarp
/INCLUDE:_GDALSuggestedWarpOutput  /INCLUDE:_GDALGCPTra
nsform  /INCLUDE:_GDALComputeMedianCutPCT  /INCLUDE:_GDALDitherRGB2PCT
port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj
ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib      odbc32.lib  "C:\Program
Files\Earth Resource Mapping\ECW SDK"\lib\NCSEcw.lib "C:\Program Files\Earth
Resource Mapping\ECW SDK"\lib\NC
SEcwC.lib  "C:\Program Files\Earth Resource Mapping\ECW SDK"\lib\NCSUtil.lib
"C:\Svs_dev\src\jasper-1.700.2"\src\msvc\Win32_Release\libjasper.lib
/out:gdal11.dll /implib:gdal_i.lib
Microsoft (R) Incremental Linker Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in
MSVCRT.lib(MSVCRT.dll)
LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in
MSVCRT.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in
MSVCRT.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in
MSVCRT.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in
MSVCRT.lib(cinitexe.obj)
LIBC.lib(mbctype.obj) : error LNK2005: __getmbcp already defined in
MSVCRT.lib(MSVCRT.dll)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __strdup already defined in
LIBC.lib(strdup.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __unlink already defined in
LIBC.lib(unlink.obj)
LIBC.lib(crt0dat.obj) : warning LNK4006: _exit already defined in
MSVCRT.lib(MSVCRT.dll); second definition ignored
LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in
MSVCRT.lib(cinitexe.obj); second definition ignored
LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in
MSVCRT.lib(cinitexe.obj); second definition ignored
LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in
MSVCRT.lib(cinitexe.obj); second definition ignored
LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in
MSVCRT.lib(cinitexe.obj); second definition ignored
LIBC.lib(mbctype.obj) : warning LNK4006: __getmbcp already defined in
MSVCRT.lib(MSVCRT.dll); second definition ignored
MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __strdup already defined in
LIBC.lib(strdup.obj); second definition ignored
MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __unlink already defined in
LIBC.lib(unlink.obj); second definition ignored
   Creating library gdal_i.lib and object gdal_i.exp
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other
libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs;
use /NODEFAULTLIB:library
LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
gdal11.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.

Thom DeCarlo
Sr. S/W Eng, VisSim
ConITS - AvSP - LaRC - NASA



_______________________________________________
Gdal-dev mailing list
Gdal-dev at remotesensing.org
http://remotesensing.org/mailman/listinfo/gdal-dev





More information about the Gdal-dev mailing list