Re: [pygccxml-development] Re : Re : Re : Re : Re : Compilation problem
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2008-06-09 19:29:43
|
On Mon, Jun 9, 2008 at 6:35 PM, Vincent Ferries <vin...@gm...> wrote: > I now include my cpp code with the directive : > mb.code_creator.add_include(myCorrespondingCppFile.cpp) > > Is this the right way to do it? No. I generally doesn't include cpp files. I think the problem is here(scons file): def get_py_ferespost_files(): source_files = filter(lambda s: s.endswith('.cpp'), os.listdir(settings.generated_files_dir)) return map(lambda fname: os.path.join(settings.generated_files_dir, fname), source_files) If you generate code to a directory other than wrapped library code, than the cpp files of the library ( forepost )is not included into the build. Just update your scons. > And another question (yes, again...). > The project I'm trying to wrap is quite complex and has a lot of > cross-dependencies. > (a file A including another file B which include A for example). > I don't know how to déclare such dependencies using py++. > Any help would be appreciated. What do you mean "to declare dependencies"? -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |