0
Follow
0
View

Can't find mallc.cpp instead of mallc.h?

poppo13422 注册会员
2023-02-25 14:11

the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ < br / > if you have not produced in the process of compilation errors, but appeared during debugging" find mallc. CPP "mistakes, Probably because you did not include the required library files correctly.

In Windows, the malloc function is usually included in the CRT(C runtime library) library file. You can add CRT library files to the compiler options to ensure that malloc functions are linked properly. The specific steps are as follows:

  1. Open Project properties: In Visual Studio, right-click on your project and select the "Properties" option from the context menu that pops up.

  2. Configure compiler options: In the properties window, select the "C/C++" TAB, then select the "Code Generator" subtab.

  3. Add CRT library file: In the Code Generator TAB, find the Runtime option, set it to Multithreaded debugging(/MTd) or Multithreaded(/MT), and click the OK button to save your changes.

If you have added the correct library files and still have an error where mallc.cpp cannot be found, there may be another problem in your code that is causing the error. You can look for other possible problems by examining the code.

Hope you found this information helpful. If you need more help, please feel free to ask me.

About the Author

Question Info

Publish Time
2023-02-25 14:11
Update Time
2023-02-25 14:11

Related Question

C++环境下,pthread_cancel终止一个线程时,被终止线程内部的栈变量会自动销毁吗?

Scanf()请求输入两次

Can i set a rxjs timer in a subscribe method in Angular?

canvas的setFillStyle属于读取失败

Error in sample.int(m, k) : Cannot take a larger sample than population when 'replace=False'

搜索栏在OffCanvasMenus reactjs

cannot import name 'experimental' from 'tensorflow.keras.mixed_precision'

python安装时报错ERROR: Operation cancelled by user

python中find()函数

C语言初学者关于scanf_s输入的问题