Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] error C2061: syntax error : identifier 'va_list'

Dear CDT Gurus,
 
I am relatively new to CDT setup with Eclipse.
 
Please tell what I am missing that causes this problem in Windows CDT setup.
 

I get the following error when I compile in CDT using nmake

 

BUILDING ITK Project directory D:\CustomizationEnvironment\eclipse-SDK-3.2.2-win32\workspace\dmoenv\user_exits for TC-2007.

      cl.exe -DNT40 -DPOMDLL -DCRTAPI1=_cdecl  -DCRTAPI2=cdecl -D_WIN32 -DWIN32 -DWIN32_LEAN_AND_MEAN  -DWNT -DBYPASS_FLEX -D_INTEL=1 -DIPLIB=none -c -nologo -EHsc -W1 -Ox -Oy- -Z7 -MD /I"C:\Program Files\Microsoft Visual Studio 9.0\VC\include" /I"C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\include" /I"C:\Program Files\UGS\Teamcenter\Tc2007\include" /I"D:\CustomizationEnvironment\eclipse-SDK-3.2.2-win32\workspace\dmoenv\include" "D:\CustomizationEnvironment\eclipse-SDK-3.2.2-win32\workspace\dmoenv"\custom_exits\*.cpp

dmo_register_methods.cpp

C:\Program Files\UGS\Teamcenter\Tc2007\include\tccore/custom.h(32) : error C2061: syntax error : identifier 'va_list'

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' : return code '0x2'

Stop.

 

I am starting Eclipse 3.2 as follows:

 

@echo off

 

call D:

 

SET TC_ROOT="C:\Program Files\UGS\Teamcenter\Tc2007"

SET TC_DATA="D:\Installed\Teamcenter\Tc2007.1.7.2008022400\tcdata"

SET TC_INCLUDE=%TC_ROOT%\include

SET TC_LIBRARY=%TC_ROOT%\lib

SET JRE_HOME=%JAVA_HOME%\jre

 

if not defined FMS_HOME set FMS_HOME=C:\apps\tc-unified\Tc2007\fcc

 

if not defined TC_ROOT set TC_ROOT=~your_tcroot_dir~

 

if not defined IIOP_SERVER_PATH set IIOP_SERVER_PATH=~your_iiopserver_dir~

 

if not defined HTTP_SERVER_PATH set HTTP_SERVER_PATH=~your_httpserver_dir~

 

call %TC_DATA%\tc_profilevars

call %TC_ROOT%\vsvars32.bat

 

set PATH=%JRE_HOME%\bin;%TC_ROOT%\lib;%FMS_HOME%\bin;%FMS_HOME%\lib;%PATH%

 

start "TAO ImR" /min cmd /c "C:\apps\tc-unified\Tc2007\iiopservers\start_imr.bat"

 

cd %ECLIPSE_HOME%

 

rem

echo -

echo Environment Variables set for Teamcenter 2007 ...

echo -

echo - Starting eclipse... please be patient!

echo -

rem

 

eclipse.exe -vmargs -Xms128m -Xmx512m

 

 

 

@echo on

 

My Make file:

 

# nmake makefile

 

# include <Win32.Mak>

 

CFG=utilities TC-2007

ITKDIR=D:\CustomizationEnvironment\eclipse-SDK-3.2.2-win32\workspace\dmoenv

TC_ROOT=C:\Program Files\UGS\Teamcenter\Tc2007

TC_USER_DIR=C:\Program Files\UGS\Teamcenter\Tc2007\local

TC_CUSTOM_LIB_NAME=dmo.dll

TC_CUSTOM_BAK_LIB_NAME=dmo.bakdll

TC_CUSTOM_LIBRARY=dmo.lib

TC_SITE=dmo

VC_PATH=C:\Program Files\Microsoft Visual Studio 9.0\VC

VC_SDK_PATH=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2

CUST_FUNC_LIB_NAME=dmocustom_functions

 

# Compile

 

# Set all compile arguments.

 

DEFINES = -DNT40 -DPOMDLL -DCRTAPI1=_cdecl \

      -DCRTAPI2=cdecl -D_WIN32 -DWIN32 -DWIN32_LEAN_AND_MEAN \

      -DWNT -DBYPASS_FLEX -D_INTEL=1 -DIPLIB=none

 

MISCFLAGS=-c -nologo -EHsc -W1 -Ox -Oy- -Z7 -MD

 

CXX_CFLAGS=/I"$(VC_PATH)\include" /I"$(VC_SDK_PATH)\include" /I"$(TC_ROOT)\include" /I"$(ITKDIR)\include"

 

CFLAGS=$(DEFINES) $(MISCFLAGS) $(CXX_CFLAGS)

 

 

#Link

 

# Set all link arguments.

 

DLLFLAGS = -debug -nologo -machine:IX86 -subsystem:console -dll

 

SYSLIBS = wsock32.lib advapi32.lib msvcrt.lib oldnames.lib kernel32.lib winmm.lib

 

XMLLIBS = xerces260.lib

 

LINKCMD = $(DLLFLAGS) "$(ITKDIR)\custom_exits\lib\*.obj" $(SYSLIBS) \

    libuser_exits.lib \

    libict.lib \

    libsyss.lib \

    libpom.lib \

    libae.lib \

    libappr.lib \

    libarchive.lib \

    libbackup.lib \

    libbom.lib \

    libcfm.lib \

    libcxpom.lib \

    libdmi.lib \

    libecm.lib \

    libeint.lib \

    libepm.lib \

    libfclasses.lib \

    libform.lib \

    libgrm.lib \

    libics.lib \

    libtc.lib \

    libtccore.lib \

    libtctrushape.lib \

    libinternal_exits.lib \

    libitk.lib \

    liblov.lib \

    libme.lib \

    libmechatronics.lib \

    libmgc.lib \

    libobjio.lib \

    libpie.lib \

    libproperty.lib \

    libps.lib \

    libpublication.lib \

    libqry.lib \

    libres.lib \

    libsa.lib \

    libss.lib \

    libsub_mgr.lib \

    libtccoreext.lib \

    libtextsrv.lib \

    libnxmgr_im.lib \

      $(CUST_FUNC_LIB_NAME).lib \

      $(XMLLIBS)

 

ALL : All_message libuser_exits.dll copyLib delLib

 

All_message :

      @echo BUILDING ITK Project directory $(ITKDIR)\user_exits for TC-2007.

 

libuser_exits.dll : cppObj cObj copyObj delObj

      link.exe $(LINKCMD) -out:"$(ITKDIR)\bin\$(TC_CUSTOM_LIB_NAME)"

 

cppObj : *.cpp

      cl.exe $(CFLAGS) "$(ITKDIR)"\custom_exits\*.cpp

     

cObj : *.c

      cl.exe $(CFLAGS) "$(ITKDIR)"\custom_exits\*.c

 

copyObj :

      -@copy "$(ITKDIR)"\custom_exits\*.obj "$(ITKDIR)"\custom_exits\lib

 

delObj :

      -@erase "$(ITKDIR)"\custom_exits\*.obj

 

copyLib :

      -@copy "$(ITKDIR)"\bin\"$(TC_CUSTOM_LIBRARY)" "$(ITKDIR)"\lib

 

delLib :

      -@erase "$(ITKDIR)"\bin\"$(TC_CUSTOM_LIBRARY)"

 

DEPLOY: Deploy_message Deploy_user_exits Deploy_include

 

Deploy_message :

      @echo DEPLOYING ITK 'user_exits' Customization to directory $(TC_USER_DIR) for TC-2007.

 

Deploy_user_exits :

      -@copy "$(TC_USER_DIR)"\bin\"$(TC_CUSTOM_LIB_NAME)" "$(TC_USER_DIR)"\bin\"$(TC_CUSTOM_BAK_LIB_NAME)"

      -@copy "$(ITKDIR)"\bin\"$(TC_CUSTOM_LIB_NAME)" "$(TC_USER_DIR)"\bin

      -@copy "$(ITKDIR)"\bin\"$(TC_SITE)".pdb "$(TC_USER_DIR)"\bin

      -@copy "$(ITKDIR)"\lib\"$(TC_CUSTOM_LIBRARY)" "$(TC_USER_DIR)"\lib

 

Deploy_include :

      -@copy "$(ITKDIR)"\include\dmo_handlers.h "$(TC_USER_DIR)"\include

      -@copy "$(ITKDIR)"\include\dmo_methods.h "$(TC_USER_DIR)"\include

      -@copy "$(ITKDIR)"\include\dmo_register_calls.h "$(TC_USER_DIR)"\include

      -@copy "$(ITKDIR)"\include\dmo_errors.h "$(TC_USER_DIR)"\include

     

CLEAN : Clean_message Clean_Home Clean_bin Clean_lib

 

Clean_message :

      @echo CLEANING ITK Project directory $(ITKDIR)\custom_exits for TC-2007.

 

Clean_Home :     

      -@erase "$(ITKDIR)"\specs.i

 

Clean_bin :

      -@erase "$(ITKDIR)"\bin\"$(TC_CUSTOM_LIB_NAME)"

      -@erase "$(ITKDIR)"\bin\"$(TC_SITE)".pdb

      -@erase "$(ITKDIR)"\bin\"$(TC_SITE)".exp

      -@erase "$(ITKDIR)"\bin\"$(TC_SITE)".ilk

      -@erase "$(ITKDIR)"\bin\"$(TC_CUSTOM_LIB_NAME)".manifest

 

Clean_lib :

      -@erase "$(ITKDIR)"\lib\"$(TC_CUSTOM_LIBRARY)"

      -@erase "$(ITKDIR)"\custom_exits\lib\*.obj

 

 

 
Best regards,

Susheel Malvey

 

Back to the top