Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters
Register

Reply
 
LinkBack Thread Tools
Old 15.03.2004, 14:56   #1
4294967296
 
Boyov's Avatar
 
Join Date: 03 2002
Location: /proc/1
Age: 33
Posts: 379
Downloads: 4
Uploads: 0
Reputation: 0 | 0
Default Unresolved externals

Hi ,

I am trying to build a program, compilation goes well, but when trying to link I am getting errors (output of 'nmake' (part) is listed below). Have you any idea about that externals (from which lib they should be imported) ?
I am using MS Visual Studio 6.
And one more thing, I have a .lib file and I want to see the list of varibales it exports. Is it possible?

Thanks
Artem.

link -out:blib\arch\auto\GSS\GSS.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf -libpath:"C:\opt\alien\lib\CORE" -machine:x86 GSS.obj C:\opt\alien\lib\CORE\perl58.lib C:\openssl-0.9.7b\out32dll\libeay32.lib C:\openssl-0.9.7b\out32dll\ssleay32.lib
.......................
list of linked libs
.......................
"C:\Program Files\Microsoft Visual Studio\VC98\lib\winmm.lib" "C:\Program Files\Microsoft Visual Studio\VC98\lib\version.lib" "C:\Program Files\Microsoft Visual Studio\VC98\lib\odbc32.lib" "C:\Program Files\Microsoft Visual Studio\VC98\lib\odbccp32.lib" "C:\Program Files\Microsoft Visual Studio\VC98\lib\msvcrt.lib" -def:GSS.def
Creating library blib\arch\auto\GSS\GSS.lib and object blib\arch\auto\GSS\GSS.exp
// here comes ERRORS
globus_oldgaa.lib(oldgaa_policy_evaluator.obj) : error LNK2001: unresolved external symbol ___security_cookie
globus_common_win32dbg.lib(globus_print.obj) : error LNK2001: unresolved external symbol ___security_cookie
globus_sslutils.lib(sslutils.obj) : error LNK2001: unresolved external symbol ___security_cookie
globus_oldgaa.lib(oldglobus_gaa_utils.obj) : error LNK2001: unresolved external symbol ___security_cookie
globus_oldgaa.lib(oldgaa_utils.obj) : error LNK2001: unresolved external symbol ___security_cookie
globus_gssapi.lib(verify_mic.obj) : error LNK2001: unresolved external symbol ___security_cookie
globus_common_win32dbg.lib(globus_common.obj) : error LNK2001: unresolved external symbol ___security_cookie
globus_common_win32dbg.lib(globus_thread_common.obj) : error LNK2001: unresolved external symbol ___security_cookie
globus_common_win32dbg.lib(globus_libc.obj) : error LNK2001: unresolved external symbol ___security_cookie
globus_gssapi.lib(display_status.obj) : error LNK2001: unresolved external symbol ___security_cookie
globus_gssapi.lib(wrap.obj) : error LNK2001: unresolved external symbol ___security_cookie
globus_gssapi.lib(unwrap.obj) : error LNK2001: unresolved external symbol ___security_cookie
globus_gssapi.lib(get_mic.obj) : error LNK2001: unresolved external symbol ___security_cookie
globus_oldgaa.lib(oldgaa_policy_evaluator.obj) : error LNK2001: unresolved external symbol @[email protected]
globus_common_win32dbg.lib(globus_print.obj) : error LNK2001: unresolved external symbol @[email protected]
globus_sslutils.lib(sslutils.obj) : error LNK2001: unresolved external symbol @[email protected]
globus_oldgaa.lib(oldglobus_gaa_utils.obj) : error LNK2001: unresolved external symbol @[email protected]
globus_oldgaa.lib(oldgaa_utils.obj) : error LNK2001: unresolved external symbol @[email protected]
globus_gssapi.lib(verify_mic.obj) : error LNK2001: unresolved external symbol @[email protected]
globus_common_win32dbg.lib(globus_common.obj) : error LNK2001: unresolved external symbol @[email protected]
globus_common_win32dbg.lib(globus_thread_common.obj) : error LNK2001: unresolved external symbol @[email protected]
globus_common_win32dbg.lib(globus_libc.obj) : error LNK2001: unresolved external symbol @[email protected]
globus_gssapi.lib(display_status.obj) : error LNK2001: unresolved external symbol @[email protected]
globus_gssapi.lib(wrap.obj) : error LNK2001: unresolved external symbol @[email protected]
globus_gssapi.lib(unwrap.obj) : error LNK2001: unresolved external symbol @[email protected]
globus_gssapi.lib(get_mic.obj) : error LNK2001: unresolved external symbol @[email protected]
globus_common_win32dbg.lib(globus_libc.obj) : error LNK2001: unresolved external symbol [email protected]
globus_sslutils.lib(sslutils.obj) : error LNK2001: unresolved external symbol _PKCS12_decrypt_d2i
blib\arch\auto\GSS\GSS.dll : fatal error LNK1120: 4 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
__________________
Free your mind and your OS will follow
Reply With Quote
Old 15.03.2004, 15:50   #2
Грустно...
 
Agregat's Avatar
 
Join Date: 08 2002
Location: Там, где всегда идут дожди
Age: 35
Posts: 21,717
Downloads: 2
Uploads: 0
Reputation: 250 | 7
Default

попробуй: dumpbin
касательно остального - что ты не экспортируешь там где надо.
Reply With Quote
Old 15.03.2004, 16:53   #3
4294967296
 
Boyov's Avatar
 
Join Date: 03 2002
Location: /proc/1
Age: 33
Posts: 379
Downloads: 4
Uploads: 0
Reputation: 0 | 0
Default

Quote:
Originally Posted by Agregat
попробуй: dumpbin
Спасибо


Quote:
Originally Posted by Agregat
касательно остального - что ты не экспортируешь там где надо.
Мне нужно найти фаил(ы) откуда экспортируюется всё то что unresolved . А сам я ничего не экспортрую.

Я делаю это так:

Code:
find / -name "*.lib" -exec dumpbin /all {} \;| grep _security_cookie
Может чё нить пооптимальней предложите ?
Reply With Quote
Old 16.03.2004, 17:32   #4
4294967296
 
Boyov's Avatar
 
Join Date: 03 2002
Location: /proc/1
Age: 33
Posts: 379
Downloads: 4
Uploads: 0
Reputation: 0 | 0
Default

Скачал библиотеку, перекомпилил без /MD ('Buffer Security Check') потом прицепил kernel32.lib ( для [email protected] ) и всё заработало .
Reply With Quote
Old 17.03.2004, 05:31   #5
Академик
 
Join Date: 01 2002
Location: Shambala
Age: 38
Posts: 7,015
Downloads: 11
Uploads: 0
Reputation: 267 | 5
Default

Yan tveq Microsoft i prodikciayic
Reply With Quote
Old 17.03.2004, 09:35   #6
Грустно...
 
Agregat's Avatar
 
Join Date: 08 2002
Location: Там, где всегда идут дожди
Age: 35
Posts: 21,717
Downloads: 2
Uploads: 0
Reputation: 250 | 7
Default

Quote:
Originally Posted by VaheX
Yan tveq Microsoft i prodikciayic
Правильно - скажем да - Intel C++ Compiler 8.0!
Reply With Quote
Old 17.03.2004, 10:15   #7
Академик
 
Join Date: 01 2002
Location: Shambala
Age: 38
Posts: 7,015
Downloads: 11
Uploads: 0
Reputation: 267 | 5
Default

Quote:
Originally Posted by Agregat
Правильно - скажем да - Intel C++ Compiler 8.0!
To Borland i Compilnern el i to aveli lavn e qan Microsoft in'

Microsofti miak qich te shat(kriv chaneq asel em QICH TE SHAT) normal product' da Visual Basic e
Reply With Quote
Old 17.03.2004, 20:11   #8
Грустно...
 
Agregat's Avatar
 
Join Date: 08 2002
Location: Там, где всегда идут дожди
Age: 35
Posts: 21,717
Downloads: 2
Uploads: 0
Reputation: 250 | 7
Default

MSVC7.1. удовлетворяет стандарту C++'03 процентов на 95.
Borland далек от стандарта бешенно. Большинство моих программ он просто не в состоянии скомпилировать.
GCC3.2/3.3/Intel71,8 тоже неплохие.
Reply With Quote
Old 18.03.2004, 07:30   #9
Академик
 
greka's Avatar
 
Join Date: 09 2001
Location: inside myself
Posts: 5,369
Downloads: 0
Uploads: 0
Reputation: 18 | 5
Default

ne znayu naschet VC 7, a v VC 6 [email protected] ne raspoznayutsa kompillerom, esli oni ob'yavleny POSLE main().
Borland vse kompilit kak nado.
eto k slovu o 95%
Reply With Quote
Old 18.03.2004, 12:35   #10
Грустно...
 
Agregat's Avatar
 
Join Date: 08 2002
Location: Там, где всегда идут дожди
Age: 35
Posts: 21,717
Downloads: 2
Uploads: 0
Reputation: 250 | 7
Default

VC6 + шаблоны - мертвая вещь. Могу привести два примера для интересу.
Приведенный код не компилируется без SP4/5:
PHP Code:
template <char chint i ch ch> class A{}; 
int main()
{
  
A<2a//A<2, 4> уже сработает

запустите программу:

PHP Code:
typedef void (*func)(char);

void let(char ch) {std::cout << ch << " is letter" << std::endl;}
void dig(char ch) {std::cout << ch << " is digit" << std::endl;}
template <func fvoid doIt(char ch) {f(ch);}

int main()
{
doIt<let>('a');
doIt<dig>('1');
return 
0;

Еще есть куча замечательных фокусов.
Reply With Quote
Old 18.03.2004, 12:57   #11
Академик
 
Join Date: 01 2002
Location: Shambala
Age: 38
Posts: 7,015
Downloads: 11
Uploads: 0
Reputation: 267 | 5
Default

Ay mayd yan tveq ed VC ic, 6 te 7, YAN TVEQ. Microsoft in el mard vstahi?
Reply With Quote
Old 18.03.2004, 14:50   #12
Академик
 
greka's Avatar
 
Join Date: 09 2001
Location: inside myself
Posts: 5,369
Downloads: 0
Uploads: 0
Reputation: 18 | 5
Default

Quote:
Originally Posted by VaheX
Ay mayd yan tveq ed VC ic, 6 te 7, YAN TVEQ. Microsoft in el mard vstahi?
anzamb yes chem "vstahum" - yes @[email protected] ashxatanq unem ayd ugghutyamb.

te mard gorci mech aydpisi sahmanapakumner chuni (kam @ndhanrapes - ashxatanq chuni), apa azatutyun uni @ntrelu Borland kam MS VC.

Vstahutyan harc chka stegh.
Reply With Quote
Old 19.03.2004, 09:02   #13
Грустно...
 
Agregat's Avatar
 
Join Date: 08 2002
Location: Там, где всегда идут дожди
Age: 35
Posts: 21,717
Downloads: 2
Uploads: 0
Reputation: 250 | 7
Default

Борланд == плохой компилятор.
GCC 3.3 это хорошо.
Под линукс ицц8 - тоже бесплатно и даже лучше. Великая оптимизация.
Reply With Quote
Old 19.03.2004, 10:55   #14
Академик
 
Join Date: 01 2002
Location: Shambala
Age: 38
Posts: 7,015
Downloads: 11
Uploads: 0
Reputation: 267 | 5
Default

Quote:
Originally Posted by greka
anzamb yes chem "vstahum" - yes @[email protected] ashxatanq unem ayd ugghutyamb.

te mard gorci mech aydpisi sahmanapakumner chuni (kam @ndhanrapes - ashxatanq chuni), apa azatutyun uni @ntrelu Borland kam MS VC.

Vstahutyan harc chka stegh.
OK!
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 01:14.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.