[so] Fwd: Re: Eroare compilare Windows
Vlad Popa
vladmegaboy at gmail.com
Wed Mar 15 00:06:32 EET 2017
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" <razvan.crainea at gmail.com>
Date: Mar 15, 2017 00:00
Subject: Re: [so] Eroare compilare Windows
To: "Vlad Popa" <vladmegaboy at gmail.com>, "Sisteme de Operare" <
so at cursuri.cs.pub.ro>
Cc:
>
> On Tue, Mar 14, 2017 at 11:28 PM Vlad Popa via so <so at cursuri.cs.pub.ro>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20170315/b4b20a31/attachment-0001.html>
More information about the so
mailing list