ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

STUBODBN.mak error "LNK1146: no argument specified with option '/MACHINE:'"


Article ID: 241646


Updated On:


Gen Gen - Workstation Toolset Gen - Host Encyclopedia Gen - Run Time Distributed


Using the documented Gen 8.6 nmake command to rebuild the ODBC stub from Rebuilding DBMS DLLs and Executables > DBMS Stub EXE Rebuilding i.e.
nmake -nologo -s -fSTUBODBN.mak all

Received an error on the initial DDL part of the build: LNK1146: no argument specified with option '/MACHINE:'


The STUBODBN.MAK is calling "C:\Program Files (x86)\CA\Gen86\Gen\ddl\makeddl.bat" without the 3rd parameter for GEN_BITS_MACHINE. The makeddl.bat calls makefile.nt which in turn calls tiddl.mak which contains "/MACHINE:$(GEN_BITS_MACHINE)"


Release : 8.6

Component : Gen Build Tool


To resolve the link error change this line in STUBODBN.MAK to add the 3rd parameter for GEN_BITS_MACHINE:
"%GEN86%gen\ddl\makeddl.bat" ODBC $(GEN_BITS_DIR)
"%GEN86%gen\ddl\makeddl.bat" ODBC $(GEN_BITS_DIR) $(GEN_BITS_MACHINE)

Additional Information

Gen Engineering will fix this problem at a later date.

The DB2 stub make file STUBDB2N.MAK has the same problem with missing $(GEN_BITS_MACHINE) i.e. "%GEN86%gen\ddl\makeddl.bat" DB2 $(GEN_BITS_DIR)
The Oracle stub make file STUBORAN.MAK does not have the problem i.e. "%GEN86%gen\ddl\makeddl.bat" ORACLE $(GEN_BITS_DIR) $(GEN_BITS_MACHINE)