Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NMAKE : fatal error U1077: return code '0x2' #261

Open
srijith96 opened this issue Aug 29, 2018 · 0 comments
Open

NMAKE : fatal error U1077: return code '0x2' #261

srijith96 opened this issue Aug 29, 2018 · 0 comments

Comments

@srijith96
Copy link

Hey, I'm trying to use a Simulink block (inverse kinematics) in MATLAB for my robot CRS A465 and it ends up in above mentioned error when I try running. But few other blocks are working fine.

Inverse Kinematics is a QUARC block for Quanser robots.
Specifications are ; MATLAB 2015b, Microsoft visual studio 2012, Windows 10 OS.

Diagnostic viewer:

Generating code into build folder: C:\Users\17ss116\Documents\MATLAB\untitled_quarc_win64

Input port 1 of 'untitled/World Coordinates to Joint Angles' is not connected. [3 similar]
Component: Simulink | Category: Block warning
Output port 1 of 'untitled/World Coordinates to Joint Angles' is not connected. [2 similar]
Component: Simulink | Category: Block warning

Invoking Target Language Compiler on untitled.rtw

Using System Target File: C:\Program Files\Quanser\QUARC\quarc\targets\win64\quarc_win64.tlc

Loading TLC function libraries

Initial pass through model to cache user defined code

Caching model source code

Writing header file untitled.h

Writing header file untitled_types.h

Writing header file rtwtypes.h

.

Writing header file multiword_types.h

Writing header file zero_crossing_types.h

Writing source file untitled.c

Writing header file untitled_private.h

Writing header file rtmodel.h

Writing header file rt_nonfinite.h

.

Writing source file rt_nonfinite.c

Writing header file rt_defines.h

Writing header file rtGetInf.h

Writing source file rtGetInf.c

Writing header file rtGetNaN.h

Writing source file rtGetNaN.c

.

TLC code generation complete.

Generating TLC interface API.

.

Creating data type transition file untitled_dt.h

.

Processing Template Makefile: C:\Program Files\Quanser\QUARC\quarc\R2013b\quarc_win64.tmf

Creating untitled.mk from C:\Program Files\Quanser\QUARC\quarc\R2013b\quarc_win64.tmf

Building untitled: .\untitled.bat

Microsoft (R) Program Maintenance Utility Version 11.00.61030.0
Copyright (C) Microsoft Corporation. All rights reserved.

Compiling untitled.c

cl -Ox -DNDEBUG -DON_TARGET_WAIT_FOR_START=0 -DEXT_MODE -DMODEL_URI="shmem://untitled:1" -DVERBOSE  -DUSE_RTMODEL /wd4100 -DMODEL=untitled -DRT -DNUMST=1  -DTID01EQ=0 -DNCSTATES=0  -DMULTITASKING=0 -DHAVESTDIO  -DVXWORKS -DQUARC -DTARGET_TYPE=win64  -D_CRT_SECURE_NO_DEPRECATE -DASSERTIONS=1 -DDOASSERTS  -DMULTI_INSTANCE_CODE=0  -DNDEBUG   -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_AMD64_=1 -DWIN64 -D_WIN64  -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0502 -DNTDDI_VERSION=0x05020000 -D_WIN32_IE=0x0600 -DWINVER=0x0502 -D_MT -D_DLL -MD /wd4996 untitled.c

untitled.c
untitled.c(108) : error C2109: subscript requires array or pointer type
untitled.c(109) : error C2109: subscript requires array or pointer type
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\x86_amd64\cl.EXE"' : return code '0x2'
Stop.
Error(s) encountered while building "untitled"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant