Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » compiling with MSC 10
compiling with MSC 10 [message #39669] Tue, 16 April 2013 19:47 Go to next message
amando1957 is currently offline  amando1957
Messages: 57
Registered: November 2007
Location: Wien/Vienna/Viden
Member
Hello together

Have installed the MSC 10 now, and I am trying a Win32.
Obvious it does find the Win SDK, but is ranting about (examples):

C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\winsock.h(167): 
	see declaration of 'hostent'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\winsock2.h(245) : 
	error C2011: 'netent': 'struct' type new defined
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\winsock.h(180): 
	see declaration of'	netent'


It finds a lot also in "c:\upp\uppsrc\core\Diag.h":

c:\upp\uppsrc\core\Diag.h(8) : error C2143: Syntaxerror: missin ';' before '}'
c:\upp\uppsrc\core\Diag.h(12) : error C2065: 'dword': non declared identifier
c:\upp\uppsrc\core\Diag.h(12) : error C2146: Syntaxerror: missing ')' before identifier 'options'
c:\upp\uppsrc\core\Diag.h(12) : error C2182: 'StdLogSetup': illegal use of type 'void'


The samples, which ever, are all running fine,
my own don't only.

What can I do?
Martin
Re: compiling with MSC 10 [message #39680 is a reply to message #39669] Wed, 17 April 2013 08:20 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Amando

I do not understand you well how the samples compile well but you get errors in Core.

My configuration is:
- Includes
C:\Program Files\Microsoft Visual Studio 10.0\Vc\Include
c:\Program Files\Microsoft SDKs\Windows\v7.0A\Include

- Libs
C:\Program Files\Microsoft Visual Studio 10.0\Vc\Lib
c:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib

- Paths
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Ide
C:\Program Files\Microsoft Visual Studio 10.0\Vc\Bin
c:\Program Files\Microsoft SDKs\Windows\v7.0A\Bin


Best regards
Iñaki
Re: compiling with MSC 10 [message #39686 is a reply to message #39680] Wed, 17 April 2013 11:53 Go to previous messageGo to next message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
Hello Martin,

Check your definitions of enum or struct etc.

struct mydata {
...;
...;
...;
};

If you miss ';' 'semicolon' any where then you will see this kind of error messages.

Check your console output for "Did you forget a ';'?" This will show the location of error.

This type of error message generally results from missing ';' in the code

If this error in in '.h' file then it is not getting marked with red marker as other normal errors.


Warm Regards

Deepak

[Updated on: Wed, 17 April 2013 12:39]

Report message to a moderator

Re: compiling with MSC 10 [message #39688 is a reply to message #39686] Wed, 17 April 2013 19:57 Go to previous messageGo to next message
amando1957 is currently offline  amando1957
Messages: 57
Registered: November 2007
Location: Wien/Vienna/Viden
Member
Hi together

@Koldo:
Quote:


I do not understand you well how the samples compile well but you get errors in Core.



Hmm, this is not logical of course, as the Core is the same for any project.
But this is it what I get printed.
The configuration is exactly the one what I have too.

@Deepak:
Quote:

Check your console output for ...



I have tried a Win32.
Cannot find a "console output" here. Guess you mean the compiler return, printing the errors?
I dont cover much of what you are writing.

Hassles are coming only with my old code of Win 2000, 2008.1.
Now I have got the one small Win32 compiled after all, had typos only.
I will do restart and write the others new, and this should go then.

Many thanks you too, and happy coding!
Martin
Re: compiling with MSC 10 [message #39721 is a reply to message #39688] Sat, 20 April 2013 19:36 Go to previous messageGo to next message
amando1957 is currently offline  amando1957
Messages: 57
Registered: November 2007
Location: Wien/Vienna/Viden
Member
Had a terrible mess in my code.
It has really NOTHING to do with the Core package.
I want to apologize for asking this. Embarassed

Martin
Re: compiling with MSC 10 [message #39728 is a reply to message #39721] Sun, 21 April 2013 17:11 Go to previous message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
I imagined Deep was right Wink

Best regards
Iñaki
Previous Topic: Is there a way to put U++ code on a DLL?
Next Topic: Displaying raw image data
Goto Forum:
  


Current Time: Fri Mar 29 13:12:37 CET 2024

Total time taken to generate the page: 0.02515 seconds