Closed gitdainn closed 4 months ago
MainApp.cpp์์ ์๊ธฐ์์ MainApp.h ํฌํจ ์ ๋ฐ์ํ๋ ์ค๋ฅ Error Log
1>MainApp.cpp 1>D:\1. GameProject\DirectX11_Practice2D\Reference\Headers\assimp\material.inl(106,21): error C2589: '(': '::' ์ค๋ฅธ์ชฝ์ ์๋ชป๋ ํ ํฐ์ด ์์ต๋๋ค. 1>(์์ค ํ์ผ '../Private/MainApp.cpp'์(๋ฅผ) ์ปดํ์ผํ๋ ์ค) 1>D:\1. GameProject\DirectX11_Practice2D\Reference\Headers\assimp\material.h(694,14): 1>์ด ์ง๋จ์ ์ปดํ์ผ๋ฌ ์์ฑ ํจ์ 'aiReturn aiMaterial::Get(const char ,unsigned int,unsigned int,Type ,unsigned int ) const'์์ ์ํ๋์์ต๋๋ค. 1>D:\1. GameProject\DirectX11_Practice2D\Reference\Headers\assimp\material.inl(106,21): error C3878: ๊ตฌ๋ฌธ ์ค๋ฅ: ์๊ธฐ์น ์์ ํ ํฐ '('์ด(๊ฐ) 'expression' ๋ค์์ ์์ต๋๋ค. 1>(์์ค ํ์ผ '../Private/MainApp.cpp'์(๋ฅผ) ์ปดํ์ผํ๋ ์ค) 1>D:\1. GameProject\DirectX11_Practice2D\Reference\Headers\assimp\material.h(694,14): 1>์ด ์ง๋จ์ ์ปดํ์ผ๋ฌ ์์ฑ ํจ์ 'aiReturn aiMaterial::Get(const char ,unsigned int,unsigned int,Type ,unsigned int ) const'์์ ์ํ๋์์ต๋๋ค. 1>D:\1. GameProject\DirectX11_Practice2D\Reference\Headers\assimp\material.inl(106,21): message : ์ค๋ฅ ๋ณต๊ตฌ๋ฅผ ๊ฑด๋๋ฐ์์ต๋๋ค. '( ( ( . . . ์๋ณ์' 1>(์์ค ํ์ผ '../Private/MainApp.cpp'์(๋ฅผ) ์ปดํ์ผํ๋ ์ค)
์ปดํ์ผ ์ค๋ฅ๋ก ์คํ ๋ถ๊ฐ
์ค๋ฅ ํด๊ฒฐ์ ์ํด ์๋ํ ๋ด์ฉ
#define NOMINMAX
=> std::min ๋๋ std::max ์ฌ์ฉํ๋ ๊ฒฝ์ฐ, ๋ฅผ ํฌํจํ๋ค๋ฉด
๐Description
MainApp.cpp์์ ์๊ธฐ์์ MainApp.h ํฌํจ ์ ๋ฐ์ํ๋ ์ค๋ฅ Error Log
โProblem
์ปดํ์ผ ์ค๋ฅ๋ก ์คํ ๋ถ๊ฐ
๐งTry
์ค๋ฅ ํด๊ฒฐ์ ์ํด ์๋ํ ๋ด์ฉ
pragma once ๋ชจ๋ ๋ถ์ฌ ์ค๋ณต ํฌํจํ์ง ์๋๋ก ํจ
โ Solution
#define NOMINMAX
=> std::min ๋๋ std::max ์ฌ์ฉํ๋ ๊ฒฝ์ฐ,๋ฅผ ํฌํจํ๋ค๋ฉด