[so] [T3] Program database manager mismatch

Dragos Sbarlea sbarlead at yahoo.com
Mon Dec 3 01:29:57 EET 2007


Pai eu am lucrat in C++, de unde o serie de probleme, inclusiv de performanta. La linkare ai grija sa o faci corect, sa nu ai cod duplicat si verifica tipurile de date: Monitor sa nu fie structura intr-o parte (in teste) si clasa la tine de exemplu. 
Eu nu am avut problem la linkarea librariei RW totusi...nu stiu ce sa zic, esti sigur ca sunt exportate corect functiile din libraria RW? incearca sa faci un program simplu care sa le foloseasca. 
Am mai observat ca apar problem de linkare daca pui optiuni de debug la UNELE librarii si nu la toate.
Compilarea mea este ceva de genul 
cod dependent de sistem-> so.out
libarie C++->monitoare.out
librarie wrapper C monitoare +so.out+monitoare.out->LibMonitor
librarie C RW +LibMonitor ->LibRW

Stiu ca nu prea te ajuta, daca vrei mai vb pe mess.
Succes,
Dragos Dumitru Sbîrlea
Facultatea de Automatica si Calculatoare
Universitatea Politehnica din Bucuresti

----- Original Message ----
From: Alexandru Mosoi <brtzsnr at gmail.com>
To: Sisteme de Operare <so at cursuri.cs.pub.ro>
Sent: Monday, 3 December, 2007 12:16:31 AM
Subject: Re: [so] [T3] Program database manager mismatch

poti sa-mi spui si mie cum ai compilat sub windows?

de 1h ma chinui sa compilez si dupa ce am reusit sa compilez dll-urile
nu reusesc sa compilez ./Test.exe primesc niste erori specifice (lista
e infinit mai lunga). Am dat declare ca dllexport la functiile alea,
am incercat si sa modific fisierele de test, dar fara noroc:

        link /release /out:../Test.exe Test.obj TestMonitor.obj
 TestRW.obj TestS
tres.obj Test1.obj Test2.obj Test3.obj Test4.obj Test5.obj Test6.obj
 ../LibRW.li
b ../LibMonitor.lib
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

TestRW.obj : error LNK2019: unresolved external symbol "struct Monitor
 * __cdecl
 CreateRWMonitor(void)" (?CreateRWMonitor@@YAPAUMonitor@@XZ) referenced
 in funct
ion "void __cdecl TestRW(void)" (?TestRW@@YAXXZ)
TestStres.obj : error LNK2001: unresolved external symbol "struct
 Monitor * __cd
ecl CreateRWMonitor(void)" (?CreateRWMonitor@@YAPAUMonitor@@XZ)
TestRW.obj : error LNK2019: unresolved external symbol "void __cdecl
 StopCit(str
uct Monitor *)" (?StopCit@@YAXPAUMonitor@@@Z) referenced in function
 "unsigned l
ong __stdcall Functie1ABC(void *)" (?Functie1ABC@@YGKPAX at Z)
TestStres.obj : error LNK2001: unresolved external symbol "void __cdecl
 StopCit(
struct Monitor *)" (?StopCit@@YAXPAUMonitor@@@Z)

On Dec 1, 2007 8:59 PM, Dragos Sbarlea <sbarlead at yahoo.com> wrote:
>
> Salut,
>
> La mine tema mea mi se compileaza perfect, fara warninguri, etc.
> Cand fac upload pe site primesc:
>
> LibMonitor.cpp
> LibMonitor.cpp : fatal error C1902: Program database manager
 mismatch;
> please check your installation
> monitori.cpp
> monitori.cpp : fatal error C1902: Program database manager mismatch;
 please
> check your installation
> so.cpp
> so.cpp : fatal error C1902: Program database manager mismatch; please
 check
> your installation
> Generating Code...
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
> checker: building failed
> Problema e ca nu prea am cum sa fac debuging si nu imi dau seama ce
 as putea
> sa fac sa repar problema. Din ce am citit pe net, eroarea asta ar
 putea fi
> de la instalare VS Express busita.
>
> Please help....
>
>  Dragos Dumitru Sbîrlea
> Facultatea de Automatica si Calculatoare
> Universitatea Politehnica din Bucuresti
>
>
>  ________________________________
>  Sent from Yahoo! - the World's favourite mail.
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
>



-- 
Alexandru Moşoi
http://alexandru.mosoi.googlepages.com

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html






      ___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20071202/433f4d36/attachment-0001.html


More information about the so mailing list