IBM Support

Component Testing for C compilation results in MS compiler error C2082

Troubleshooting


Problem

Attempts to build a test project that involves a stubbed function with a certain variable name for IBM Rational Test RealTime Componenet Testing for C results in the error C2082.

Symptom

Full error is as shown below:


cvisual6\T<code_under_test>_aug.c: Compiling...
cl.exe  -ZI -Yd -GZ -GX -c "cvisual6\T <code_under_test>_aug.c" -Fo"cvisual6\T <code_under_test>.obj"  
T<code_under_test>.c
cvisual6\T<code_under_test>.c(78) : error C2082: redefinition of formal parameter 'res'
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
status 2
---
Failed.

[{"Product":{"code":"SSSHUF","label":"Rational Test RealTime"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Component Testing: C","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.0.1;7.0.5;7.0.5.1;7.5;7.5.0.1","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
16 June 2018

UID

swg21399618