Jump to content
OpenSplice DDS Forum

Simd errors in visual c++ 2008


Recommended Posts

Dear Angelo Corsaro,

 

I am new to DDS (i just started 2 days back). i have built simd-cxx-src-v0.10 and installed OpenSpliceDDSV5.5.1 and boost_1_39 in my system. When i tried to execute your sample code i am getting following errors.

 

This is the code I am using

#include <iostream>
#include <sstream>
#include <iterator>
#include <dds/dds.hpp>
enum TemperatureScale {
CELSIUS,
KELVIN,
FAHRENHEIT
};
struct TempSensorType {
short id;
float temp;
float hum;
TemperatureScale scale;
};
#pragma keylist TempSensor id
int main(int argc, char**argv)
{
dds::Topic<TempSensorType> tsTopic("TempSensorTopic"); // Create a DataWriter
dds::DataWriter<TempSensorType> dw(tsTopic);
TempSensorType ts = {1, 26.0F, 70.0F, CELSIUS};
// Write Data
dw.write(ts);
return 1;
}

 

Error 11 error C2039: 'DW' : is not a member of 'dds::peer::DataWriterImpl<T>' c:\simd_dds\include\dds\writer.hpp 24 DDS_Send

Error 3 error C2039: 'type' : is not a member of 'dds::topic_data_writer<Topic>' c:\simd_dds\include\dds\peer\writer_impl.hpp 21 DDS_Send

Error 7 error C2065: 'DW' : undeclared identifier c:\simd_dds\include\dds\peer\writer_impl.hpp 141 DDS_Send

Error 8 error C2143: syntax error : missing ';' before '*' c:\simd_dds\include\dds\peer\writer_impl.hpp 142 DDS_Send

Error 4 error C2146: syntax error : missing ';' before identifier 'DW' c:\simd_dds\include\dds\peer\writer_impl.hpp 21 DDS_Send

Error 12 error C2146: syntax error : missing ';' before identifier 'DW' c:\simd_dds\include\dds\writer.hpp 24 DDS_Send

Error 14 error C2602: 'dds::DataWriter<T>::DW' is not a member of a base class of 'dds::DataWriter<T>' c:\simd_dds\include\dds\writer.hpp 24 DDS_Send

Error 15 error C2868: 'dds::DataWriter<T>::DW' : illegal syntax for using-declaration; expected qualified-name c:\simd_dds\include\dds\writer.hpp 24 DDS_Send

Error 5 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\simd_dds\include\dds\peer\writer_impl.hpp 21 DDS_Send

Error 6 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\simd_dds\include\dds\peer\writer_impl.hpp 21 DDS_Send

Error 9 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\simd_dds\include\dds\peer\writer_impl.hpp 142 DDS_Send

Error 10 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\simd_dds\include\dds\peer\writer_impl.hpp 142 DDS_Send

Error 13 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\simd_dds\include\dds\writer.hpp 24 DDS_Send

 

Please can you point what I have done wrong. I am using visual c++ 2008 express edition and my OS is windows 7.

 

Thanks and Regards,

Aburik.

Link to post
Share on other sites
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...