[so] [T3] Program database manager mismatch
Alexandru Mosoi
brtzsnr at gmail.com
Mon Dec 3 12:30:38 EET 2007
On Dec 3, 2007 1:29 AM, Dragos Sbarlea <sbarlead at yahoo.com> wrote:
>
> Pai eu am lucrat in C++, de unde o serie de probleme, inclusiv de
> performanta.
si eu am lucrat in C++ de unde o serie de probleme... :((
> 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.
daca se intampla asta atunci VCC nu respecta standardul (struct si class sunt
exact acelasi lucru, diferenta fii vizibilitatea implicita)
> 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.
Fii atent aici (4 moduri de exportare):
#define XPORT extern __declspec(dllexport)
Monitor* Create(int conditions, char policy);
// firul de executie apelant va incerca sa intre in monitor
// si daca monitorul este deja ocupat se va bloca la coada Entry.
XPORT int Enter(Monitor* m);
extern "C" {
// va if apelat de catre un fir de executie care doreste
// sa paraseasca monitorul.
int Leave(Monitor* m);
// firul de executie apelant se va bloca la variabila conditie cond.
XPORT int Wait(Monitor* m, int cond);
};
Nici una nu este rezolvata la compilare :((. Am I missing something?
> Am mai observat ca apar problem de linkare daca pui optiuni de debug la
> UNELE librarii si nu la toate.
am compilat cu /EHsc (la fel ca si celalte surse).
> 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
>
>
>
> ________________________________
> 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
More information about the so
mailing list