Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 626 Bytes

compiler-error-c2193.md

File metadata and controls

25 lines (21 loc) · 626 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2193
Compiler Error C2193
11/04/2016
C2193
C2193
9813e853-d581-4f51-bb75-4e242298a844

Compiler Error C2193

'identifier' : already in a segment

A function was placed in two different segments using alloc_text and code_seg pragmas.

The following sample generates C2193:

// C2193.cpp
// compile with: /c
extern "C" void MYFUNCTION();
#pragma alloc_text(MYCODE, MYFUNCTION)
#pragma code_seg("MYCODE2")
extern "C" void MYFUNCTION() {}   // C2193
extern "C" void MYFUNCTION2() {}