User forums > Help

Issue with VC++ compiler options

<< < (2/3) > >>

Vampyre_Dark:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vcrefcompileroptionslistedalphabetically.asp Check this page out. Very helpful.

wiz:
Hi, again. Thanks for the tips, everyone! I think I've found the problem...  :oops:

Apparently, you can set the compiler options in three different places:

1. Right-clicking on a project, selecting 'Build options' and setting the compiler options for each build target separately;
2. Right-clicking on a project, selecting 'Build options' and setting common compiler options for all the build targets (clicking on the project name in the upper left corner of the dialog box);
3. Selecting the menu Settings>>Compiler and setting the options there.

Here's my guess: the compiler evaluates the options set in each of these cases in the opposite order I listed them, that is, first case 3, then case 2 and, finally, case 1. I'd set the '/MT' flag inside the Settings>>Compiler option, so it was staying in the rightmost side of the command line, being evaluated last and overriding the 'MDd' flag... what a mess I've made!!!

Anyway, once again, thanks for the tips! They were important so I could force my brain to find the solution!  :D

Best regards,
Edgard

PS: tiwag, the picture you attached shows the compiler options' names followed by their correspondent flags. How did you do it? Is it a CVS-based version?

rickg22:
If what you said is true, then the checking isn't done regarding target / project / global options. In that case, it IS a bug. *PLEASE* file a bug report about it.

(And yes, that screenshot is of the CVS version :) )

mandrav:

--- Quote from: rickg22 on August 21, 2005, 08:26:11 am ---If what you said is true, then the checking isn't done regarding target / project / global options. In that case, it IS a bug. *PLEASE* file a bug report about it.

--- End quote ---

What he said is correct behaviour and it's not a bug.

Yiannis.

tiwag:

--- Quote from: wiz on August 21, 2005, 12:04:14 am ---PS: tiwag, the picture you attached shows the compiler options' names followed by their correspondent flags.
How did you do it? Is it a CVS-based version?

--- End quote ---
yes it annoyed me often that i didn't know which option is hidden under the description of the various entries in the listbox
so i decided to add the [option] itself in the listbox-description text.
i published a patch for that and in the meantime it's also incorporated into the cvs version.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version