Поиск:

Ответ в темуСоздание новой темы Создание опроса
> Компиляция в Visual C ++, У меня Проблема с Компиляцией в Visual  
:(
    Опции темы
lordgabriel
  Дата 7.6.2008, 20:37 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Новичок



Профиль
Группа: Участник
Сообщений: 35
Регистрация: 29.4.2008

Репутация: нет
Всего: нет



У меня Проблема  с 
Компиляцией в Visual C ++ 
И созданием екзешнка. 
Компилировал вроде на Visual - е  год назад помню что скомпилировал а щас чегото не получается пишет куча ошибок. 
 smile 
Build Log 

--------------------Configuration: RCast - Win32 Release-------------------- 

Command Lines 
Creating temporary file "C:\DOCUME~1\Gabriel\LOCALS~1\Temp\RSPB.tmp" with contents 
[ 
/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Release/RCast.pch" /YX /Fo"Release/" /Fd"Release/" /FD /c 
"E:\Downloads\RayCasting55\RCast.cpp" 
] 
Creating command line "cl.exe @C:\DOCUME~1\Gabriel\LOCALS~1\Temp\RSPB.tmp" 
Creating temporary file "C:\DOCUME~1\Gabriel\LOCALS~1\Temp\RSPC.tmp" with contents 
[ 
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:no /pdb:"Release/RCast.pdb" /machine:I386 /out:"Release/RCast.exe" 
.\Release\RCast.obj 
] 
Creating command line "link.exe @C:\DOCUME~1\Gabriel\LOCALS~1\Temp\RSPC.tmp" 
Output Window 
Compiling... 
RCast.cpp 
E:\Downloads\RayCasting55\RCast.cpp(166) : warning C4244: '=' : conversion from 'unsigned long' to 'float', possible loss of data 
E:\Downloads\RayCasting55\RCast.cpp(189) : warning C4244: '=' : conversion from 'unsigned long' to 'float', possible loss of data 
E:\Downloads\RayCasting55\RCast.cpp(190) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 
E:\Downloads\RayCasting55\RCast.cpp(144) : warning C4715: 'WndProc' : not all control paths return a value 
Linking... 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcSwapBuffers(void)" (?rcSwapBuffers@clRayCast@@QAEXXZ) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcTrace(void)" (?rcTrace@clRayCast@@QAEXXZ) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcLine(float,float,float,float)" (?rcLine@clRayCast@@QAEXMMMM@Z) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcColor4b(unsigned char,unsigned char,unsigned char,unsigned char)" (?rcColor4b@clRayCast@@QAEXEEEE@Z) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcCamRot(float)" (?rcCamRot@clRayCast@@QAEXM@Z) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcClear(int)" (?rcClear@clRayCast@@QAEXH@Z) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcSetCount(int)" (?rcSetCount@clRayCast@@QAEXH@Z) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcClearColor4b(unsigned char,unsigned char,unsigned char,unsigned char)" (?rcClearColor4b@clRayCast@@QAEXEEEE@Z) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcInitDir(void)" (?rcInitDir@clRayCast@@QAEXXZ) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcInit(struct HDC__ *,int,int)" (?rcInit@clRayCast@@QAEXPAUHDC__@@HH@Z) 
RCast.obj : error LNK2001: unresolved external symbol "public: __thiscall clRayCast::~clRayCast(void)" (??1clRayCast@@QAE@XZ) 
RCast.obj : error LNK2001: unresolved external symbol "public: __thiscall clRayCast::clRayCast(void)" (??0clRayCast@@QAE@XZ) 
LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main 
Release/RCast.exe : fatal error LNK1120: 13 unresolved externals 
Error executing link.exe. 


Results 
RCast.exe - 14 error(s), 4 warning(s) 

--------------------Configuration: RCast - Win32 Debug-------------------- 

Command Lines 
Creating temporary file "C:\DOCUME~1\Gabriel\LOCALS~1\Temp\RSPE.tmp" with contents 
[ 
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/RCast.pdb" /debug /machine:I386 /out:"Debug/RCast.exe" /pdbtype:sept 
.\Debug\RCast.obj 
] 
Creating command line "link.exe @C:\DOCUME~1\Gabriel\LOCALS~1\Temp\RSPE.tmp" 
Output Window 
Linking... 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcSwapBuffers(void)" (?rcSwapBuffers@clRayCast@@QAEXXZ) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcTrace(void)" (?rcTrace@clRayCast@@QAEXXZ) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcLine(float,float,float,float)" (?rcLine@clRayCast@@QAEXMMMM@Z) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcColor4b(unsigned char,unsigned char,unsigned char,unsigned char)" (?rcColor4b@clRayCast@@QAEXEEEE@Z) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcCamRot(float)" (?rcCamRot@clRayCast@@QAEXM@Z) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcClear(int)" (?rcClear@clRayCast@@QAEXH@Z) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcSetCount(int)" (?rcSetCount@clRayCast@@QAEXH@Z) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcClearColor4b(unsigned char,unsigned char,unsigned char,unsigned char)" (?rcClearColor4b@clRayCast@@QAEXEEEE@Z) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcInitDir(void)" (?rcInitDir@clRayCast@@QAEXXZ) 
RCast.obj : error LNK2001: unresolved external symbol "public: void __thiscall clRayCast::rcInit(struct HDC__ *,int,int)" (?rcInit@clRayCast@@QAEXPAUHDC__@@HH@Z) 
RCast.obj : error LNK2001: unresolved external symbol "public: __thiscall clRayCast::~clRayCast(void)" (??1clRayCast@@QAE@XZ) 
RCast.obj : error LNK2001: unresolved external symbol "public: __thiscall clRayCast::clRayCast(void)" (??0clRayCast@@QAE@XZ) 
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main 
Debug/RCast.exe : fatal error LNK1120: 13 unresolved externals 
Error executing link.exe. 


Results 
RCast.exe - 14 error(s), 0 warning(s) 


Архив: 

http://www.gamedev.ru/download/?id=7404 

PM MAIL   Вверх
lordgabriel
  Дата 7.6.2008, 21:45 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Новичок



Профиль
Группа: Участник
Сообщений: 35
Регистрация: 29.4.2008

Репутация: нет
Всего: нет



Посмотрите пожалуйста исходник
  smile  smile 
PM MAIL   Вверх
lordgabriel
  Дата 8.6.2008, 22:26 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Новичок



Профиль
Группа: Участник
Сообщений: 35
Регистрация: 29.4.2008

Репутация: нет
Всего: нет



А может не в Visual C++ надо компилировать 
 smile 
PM MAIL   Вверх
dizzy1984
Дата 9.6.2008, 08:22 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 675
Регистрация: 15.2.2007

Репутация: 10
Всего: 25



Линковщик сообщает тебе о том, что не подключена библиотека, содержащая реализацию класса clRayCast. Необходимо либо добавить соответствующий *.cpp файл в проект, либо прилинковать соответствующий *.lib.

Добавлено через 3 минуты и 7 секунд
Кроме того, похоже, вместо многопоточной линкуется однопоточная c run time библиотека.
PM MAIL   Вверх
  
Ответ в темуСоздание новой темы Создание опроса
0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей)
0 Пользователей:
« Предыдущая тема | Visual C++/MFC/WTL | Следующая тема »


 




[ Время генерации скрипта: 0.0431 ]   [ Использовано запросов: 22 ]   [ GZIP включён ]


Реклама на сайте     Информационное спонсорство

 
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности     Powered by Invision Power Board(R) 1.3 © 2003  IPS, Inc.