From: Brett S. <bre...@gm...> - 2012-01-04 19:35:57
|
Hello, This is a very basic question, but I'm not sure how to proceed. I'm hoping to call the openSVC decoder from a c++ class in the omnet++ network simulator. I have a class that calls the JSVM decoder, and I'm hoping to do the same with openSVC... but I don't understand it. I looked at the SVC_decoder_v9 class project, and the main(..) function seems straightforward enough, so I thought it would be fairly straight forward. But when I copied the code from main(..) into a method in a c++ object in omnet, and copied the forward declarations above it, it did not compile. For example, the init_svc_vectors(..) method on the first line of main(..) is defined by a forward declaration above... and it seems to be defined in MB_P_svc.c ... But MB_P_svc.h is not included anywhere, and even if it was, it does not define the init_svc_vectors(..) method found in MB_P_svc.c I have look all through the project settings to try to figure out how the mainline is able to access this method (and all the others) without any include, but I cannot find anything. I am only familiar with c++, and I am not used to seeing all these methods without being contained in classes. But it seems that they should still have to be included somewhere to work. If anyone could give me any clue as to what I am missing, I would appreciate it. Thank you, Brett Slote |