![]() |
Модераторы: Daevaorn |
![]() ![]() ![]() |
|
maksar |
|
|||
Шустрый ![]() Профиль Группа: Участник Сообщений: 52 Регистрация: 24.11.2003 Репутация: нет Всего: нет |
Помогите. У меня Visual C++ .NET. У меня есть приложение оно использует _beginthread, process.h подключен. При компеляции сообщает '_beginthread' : undeclared identifier.
|
|||
|
||||
Borisff2003 |
|
|||
![]() Бывалый ![]() Профиль Группа: Участник Сообщений: 198 Регистрация: 26.2.2004 Где: г. Уфа Репутация: 1 Всего: 1 |
Вставь в строку компиляции
/MT he BOUNCE.C program is introduced in Sample Multithread C Program. To compile and link the multithread program BOUNCE.C from within the development environment Click New on the File menu, then click the Projects tab. On the Projects tab, click Console Application, and name the project. Add the file containing the C source code to the project. On the View menu, click Property Pages. In the Property Pages dialog box, click the C/C++ folder. Select the Code Generation page. From the Runtime Library drop-down box, select Multi-threaded. Click OK. Build the project by clicking the Build command on the Build menu. To compile and link the multithread program BOUNCE.C from the command line Ensure that the Win32 library files and LIBCMT.LIB are in the directory specified in your LIB environment variable. Compile and link the program with the CL command-line option /MT: CL /MT BOUNCE.C If you choose not to use the /MT option, you must take these steps: Define the _MT symbol before including header files. You can do this by specifying /D _MT on the command line. Specify the multithread library and suppress default library selection. The multithread include files are used when you define the symbolic constant _MT. You can do this with the CL command line option /D _MT or within the C source file before any include statements, as follows: #define _MT #include <stdlib.h> --------------------
Лень, двигатель прогресса |
|||
|
||||
![]() ![]() ![]() |
Правила форума "С++:Общие вопросы" | |
|
Добро пожаловать!
Если Вам понравилась атмосфера форума, заходите к нам чаще! С уважением, Earnest Daevaorn |
0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей) | |
0 Пользователей: | |
« Предыдущая тема | C/C++: Общие вопросы | Следующая тема » |
|
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности Powered by Invision Power Board(R) 1.3 © 2003 IPS, Inc. |