Posts by Leonardo • 143 points
2 posts
-
2
votes3
answers5915
viewsA: Struct and chained list
See, what’s happening is that you’re defining the word Pessoa as an empty string to be replaced by procesator. Because of the #define Pessoa, what is actually being compiled is: typedef struct…
-
2
votes1
answer77
viewsA: Multiple Definitions in the moc. file of a class
Putting the statement and setting in the header is not a very good idea. Each build unit (e.g., .cpp) that includes this header will get a copy of the definition and so you will get these linkage…