Closed GoogleCodeExporter closed 9 years ago
Original comment by dmitry...@gmail.com
on 21 Jun 2010 at 9:51
Since the header-file in general contains function-bodies, which is not valid
if multiple C++ files using the same header, because of multiple definition
errors, I would suggest two solutions:
Either one has to use an #ifdef preprocessor-directive
Or make it in a formal correct way and separate function-bodies from the
headerfile (see attached files). In the latter case one has to compile the
p3dfft_cpp.cpp file and link its object to your main program.
In the attached files I commented out the abort() function because I'm not sure
about its function, since it is already standard-contained in Fortran and C/C++
(See also Issue 34 http://code.google.com/p/p3dfft/issues/detail?id=34).
Original comment by sla...@astro.uni-wuerzburg.de
on 2 Jul 2010 at 12:15
Attachments:
Original comment by dan.djc...@gmail.com
on 28 Jul 2010 at 12:48
Original comment by dmitry...@gmail.com
on 9 Aug 2010 at 7:13
Original issue reported on code.google.com by
dmitry...@gmail.com
on 15 Jun 2010 at 6:32