473,506 Members | 13,088 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Conversion error

2 New Member
Hi, I'm doing an internship and I've been asking to debug a program that I barely understand. While compiling it, i've several errors that occurs all along the compilation.

The first one says:

processings.cc(299) : error C2440: '=' : cannot convert from 'void (__cdecl *)(const Real64 &,const Real64 &,const GuidanceInput &,...)' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast.

Do you have any idea where it comes from?

Thx
Jul 1 '08 #1
3 1378
oler1s
671 Recognized Expert Contributor
You are posting error lines without corresponding code lines. You really think we can help you here? The most we can do is point you to the generic principle behind the error: http://msdn.microsoft.com/en-us/library/sy5tsf8z.aspx
Jul 1 '08 #2
weaknessforcats
9,208 Recognized Expert Moderator Expert
Look at line 299 of processings.cc.

It looks like you are trying to assign the return value of a function to an int. Except the function has a void return so there's not int to assign. LIke this:
Expand|Select|Wrap|Line Numbers
  1. void MyFunction(int arg);
  2.  
  3. int i = MyFunction(30);    //ERROR MyFunction does not return an int
  4.  
Jul 1 '08 #3
pirad13
2 New Member
Well in fact the problem comes from somewhere else. My three errors are all linked together I think. If I solve the first one it should be good:

d:\Stage\pegase\simu_dev\simu\genFW\Root_Aircraft_ FCSys.h(96) : error C2079: 'NS_Pegase::Root_Aircraft_FCSys::_run_flight_model s' uses undefined class 'boost::function<Signature>'

which reffers to the following line of Root_Aircraft_FCSys.h(96):

boost::function<void (const Real64& , const Real64& , const Navigation& , const Int32& , const Int32& ,... )> _run_flight_models;
Jul 2 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

30
4993
by: Tim Johansson | last post by:
I'm new to C++, and tried to start making a script that will shuffle an array. Can someone please tell me what's wrong? #include <iostream.h> #include <string.h> int main () {...
7
3247
by: Michael Lehn | last post by:
Hi, I have a question regarding the conversion of objects. When is the conversion done by the constructor and when by the operator. My feeling tells me that the constructor is preferred. But...
2
2209
by: Maurice | last post by:
Folks once again I look forward to your invaluable assistance. When converting an Access 2002 mdb back to Access 1997 using the Access 2002 inbuilt tools I receive the following error message...
11
7590
by: Steve Gough | last post by:
Could anyone please help me to understand what is happening here? The commented line produces an error, which is what I expected given that there is no conversion defined from type double to type...
2
1516
by: Harold Howe | last post by:
Howdy all, I am getting a compiler error regarding a consrained conversion. It complains that it can't make the type conversion, even though the generic type argument inherits from the target of...
6
2783
by: Dhirendra Singh | last post by:
Hi, The following C++ program is not compiling on my system. #include <iostream> using namespace std; class complex { double re, im; public: complex( ) :re(0), im(0) {}
31
3102
by: Martin Jørgensen | last post by:
Hi, I've had a introductory C++ course in the spring and haven't programmed in C++ for a couple of months now (but I have been programmed in C since january). So I decided to do my conversion...
11
2682
by: jyck91 | last post by:
// Base Conversion // Aim: This program is to convert an inputted number // from base M into base N. Display the converted // number in base N. #include <stdio.h> #include <stdlib.h>...
3
7139
by: fazulu deen | last post by:
Hi all, For the following code : file_ptr = fopen("pass_fail.txt", "a"); // error line 393 fdisplay(file_ptr, "Test Passed"); fclose(file_ptr);
6
2619
by: Rahul | last post by:
Hi Everyone, I have the following code, class B; class A { public : operator B();
0
7220
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7105
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7308
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5037
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3178
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1534
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
410
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.