Salut

Stiu ca pe masina virtuala as avea aceleasi erori pentru cs este identica
cu cea de pe vmchecker, dar problema este ca nu stiu ce ar putea sa
genereze erorile.

Prima eroare (si cea care genereaza restul erorilor pentru ca structura nu
mai exista) este legată de
"typedef struct HashtTable{
} hashtable;

Am incercat sa redenumesc ca myTable si primesc aceeasi eroare
  Error C2275 illegal use of this type as an expression, see declaration of
myTable..



---------- Forwarded message ----------
From: "Razvan Crainea" <[email protected]>
Date: Mar 15, 2017 00:00
Subject: Re: [so] Eroare compilare Windows
To: "Vlad Popa" <[email protected]>, "Sisteme de Operare" <
[email protected]>
Cc:


>
> On Tue, Mar 14, 2017 at 11:28 PM Vlad Popa via so <[email protected]>
> wrote:
>
>> Ruland urmatoarele comenzi:
>>
>> C:\cygwin\home\Student>"C:\Program Files\Microsoft Visual Studio 
>> 10.0\VC\vcvarsall.bat"   && nmake /nologo build
>> Setting environment for using Microsoft Visual Studio 2010 x86 tools.
>>      cl /nologo /w /DDLL_IMPORTS /D_CRT_SECURE_NO_WARNINGS /c hash.c
>> hash.c
>>      link /dll /out:hash.dll hash.obj
>> Microsoft (R) Incremental Linker Version 10.00.30319.01
>> Copyright (C) Microsoft Corporation.  All rights reserved.
>>
>>      cl /nologo /w /DDLL_IMPORTS /D_CRT_SECURE_NO_WARNINGS /c main.c
>> main.c
>>
>>
>> Primesc foarte multe erori precum:
>>
>> main.c(75) : error C2275: 'hashtable' : illegal use of this type as an 
>> expression
>>         main.c(16) : see declaration of 'hashtable'
>> main.c(75) : error C2065: 'table' : undeclared identifier
>> main.c(77) : error C2065: 'table' : undeclared identifier
>> main.c(78) : error C2065: 'table' : undeclared identifier
>> main.c(78) : error C2223: left of '->buckets' must point to struct/union
>> main.c(80) : error C2143: syntax error : missing ';' before 'type'
>>
>> .
>>
>> etc
>>
>> Am rulat pe windows makefile-ul si se creeaza executabilul cu succes. Care 
>> ar putea fi problema?
>>
>> Salut, Vlad!
>
> Ai rulat în mașina virtuală de Windows? Eu am rulat și primesc aceleași
> erori.
>
> Numai bine,
> Răzvan
>
_______________________________________________
http://ocw.cs.pub.ro/courses/so/info/lista-discutii

Raspunde prin e-mail lui