#35 namespace clash due to mixing of C and C++ code

0.0.17
closed
nobody
None
5
2013-06-20
2008-01-05
Enno Lange
No

While programming on some extension to QUCS (great stuff by the way), I encountered the following problem:

Symptom: The transient solver (linear sweep) did not hit the requested time steps. The first steps to be hit usually appeared at the end of the sweep.

System: Portage 2.1.3.9 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5 x86_64),

Version: QUCS-0.0.13

Reproducable: always

Fix: Include the config.h in every header-file belonging to pure C-files. Otherwise a name-clash is unavoidable and my system just compiled without complaining :/

So far this fixes all the problems I encountered so far :)

Thanks so far and keep up the good work!

Discussion

  • Stefan Jahn

    Stefan Jahn - 2008-01-15

    Logged In: YES
    user_id=80302
    Originator: NO

    Hello!

    Can you please send us an example schematic with expected result, as well as the workaround you propose?

    Which extension did you write? Probably we can add it to the mainstream development tree, if it appears useful.

    Kind regards, Stefan.

     
  • Frans

    Frans - 2013-06-06
    • status: open --> closed
    • Group: --> v1.0_(example)
     
  • Frans

    Frans - 2013-06-06

    this bug is very old. please reopen if still applicable

     

Log in to post a comment.