Hi!
I'm a very beginner C++ Builder programmer. So, I guess my question will be simple for you guys here.
I've been developing a simple application with two forms: one main and one modal (or even non modal). Adequate files are: main.cpp and modal.cpp.
I call and show modal form from main form.
I would like to know this:
- in order to use modal (or non modal) form from main form, I must do #include "modal.cpp" in main.cpp (or maybe in main.h???), correct or not?
- if previous is correct (and I guess it is) then does it matter where I include modal.cpp: in main.cpp or main.h?
- when I include modal.cpp in main.cpp and build the application, I get this linker warning:
Public symbol '_modal' defined in both module: (here goes the location of created main.obj) and (here goes the location of created modal.obj)
Now, my application works perfectly, but I would like to get rid of this warning, it is really annoying to me.
I tried to turn off this linker warning, but it doesn't seem to be possible to do that for this warning.
Is there a solution(s) for this 'problem'?
I've been using C++ Builder 5 to develop this application, but I also have C++ Builder 2006 installed, and it gives me the same warning message.
I would appreciate any answer. Thank you in advance...
BoMi
I'm a very beginner C++ Builder programmer. So, I guess my question will be simple for you guys here.
I've been developing a simple application with two forms: one main and one modal (or even non modal). Adequate files are: main.cpp and modal.cpp.
I call and show modal form from main form.
I would like to know this:
- in order to use modal (or non modal) form from main form, I must do #include "modal.cpp" in main.cpp (or maybe in main.h???), correct or not?
- if previous is correct (and I guess it is) then does it matter where I include modal.cpp: in main.cpp or main.h?
- when I include modal.cpp in main.cpp and build the application, I get this linker warning:
Public symbol '_modal' defined in both module: (here goes the location of created main.obj) and (here goes the location of created modal.obj)
Now, my application works perfectly, but I would like to get rid of this warning, it is really annoying to me.
I tried to turn off this linker warning, but it doesn't seem to be possible to do that for this warning.
Is there a solution(s) for this 'problem'?
I've been using C++ Builder 5 to develop this application, but I also have C++ Builder 2006 installed, and it gives me the same warning message.
I would appreciate any answer. Thank you in advance...
BoMi