Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, March 14, 2012 11:54:55 PM(UTC)
Jerome76

Groups: Registered
Posts: 13


--------Source Code-----------------
#include
using namespace std;

class JImageViewer
{
private:
vector m_vecTest;
}
-------------------------------------


The following is the output I am seeing:

1>c:\program files\microsoft visual studio 10.0\vc\include\intrin.h(136): error C2059: syntax error : '('
1>c:\program files\microsoft visual studio 10.0\vc\include\intrin.h(136): error C2062: type 'int' unexpected
1>c:\program files\microsoft visual studio 10.0\vc\include\intrin.h(136): error C2059: syntax error : ')'


SDK : Visual Studio 2010
OS : Windows7 32Bit
LeadTool Version : V17
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, March 15, 2012 7:25:13 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


Does the problem happen if you rebuild any of the projects shipped with our toolkit? If yes, which demo triggers it?

If it only happens in your code, please provide me with small working project that triggers the issue.
Notes:
1. If you want to send any files, please put them all in one ZIP or RAR file to ensure our servers accept it.
2. Do not use the Preview after attaching as you will lose the attachment.
3. Do not send your full application.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#3 Posted : Thursday, March 15, 2012 8:42:19 PM(UTC)
Jerome76

Groups: Registered
Posts: 13


Thank you for your reply

sorry! wrong source code

----------Source Code------------
#pragma once
#include
using namespace std;

class JImageViewer
{
private:
vector m_vecTest;
public:
JImageViewer(void);
~JImageViewer(void);
};
--------------------------------------

Attached is a error source code
File Attachment(s):
ErrorSample.zip (133kb) downloaded 41 time(s).
 
#4 Posted : Sunday, March 18, 2012 5:40:46 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


This error appears to be triggered because the #include directives for headers are affecting each other. I am attaching modified 2 files in which I changed the location of #include lines and the project now compiles.
File Attachment(s):
Modified_files.zip (2kb) downloaded 58 time(s).
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.095 seconds.