Namespace not recognized in C++/CLI

后端 未结 1 480
無奈伤痛
無奈伤痛 2021-01-20 03:36

I asked this question recently: create a namespace in c++/cli? and so I am trying to create my own namespace in c++/cli.

But when I use the same namespace in two se

相关标签:
1条回答
  • 2021-01-20 04:19

    The C++/CLI compiler is stuck with the build model of traditional C and C++ compilers. Formulated at a time when a kilobyte of memory took as much space as a shoebox. It is a single-pass compiler that processes one .cpp file at a time. With a linker to glue the bits together.

    Which means that you'll have to use traditional header files to declare your classes and the #include directive at the top of your source code file to include it.

    0 讨论(0)
提交回复
热议问题