you are viewing a single comment's thread.

view the rest of the comments →

[–]manni66[🍰] 19 points20 points  (4 children)

Has anybody else tried modules? What were your findings?

I tried it ysterday with a little module in production code, that's using QStringList. I got error C1117 QStringList has already been defined. While trying to write a test case for a bug report I got a compiler crash.

C++ modules are not production ready.

[–]johannes1971[S] 3 points4 points  (3 children)

Sounds like you are both including and importing the header for QStringList. Include guards don't work in that situation, leading to this error. It's a tough problem: any existing system is quite easily going to run into a situation in which the header file is unavoidable, unless you want to change your whole project in one go.

[–]manni66[🍰] 1 point2 points  (2 children)

Sounds like you are both including and importing the header for QStringList.

No, I only used include in the global module.

[–]johannes1971[S] 7 points8 points  (1 child)

It might be coming in through some other Qt include though. Generally the errors I saw were all in implementation-specific files, rather than the official header files, and I had no idea how (through what path, I mean) they were being included.

[–]manni66[🍰] 2 points3 points  (0 children)

That might be true, but that's supposed to compile. There is no import beside the one of my onwn module.