Jump to content
OpenSplice DDS Forum
Sign in to follow this  
Aburik

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.

Share this post


Link to post
Share on other sites

Aburik -

 

I recommend starting with one of the demos.

 

I suspect you are missing the macro-foo to fill in the simd types. Maybe this would help:

 

 

REGISTER_TOPIC_TRAITS( ::TempSensorType )

 

- Gordon

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×