Yes, all the differences was I send you before.
non-working project does not have PreprocessorDefinitions. but now.. i do
not know how to fix this
Thanks,
Bye,
"voidcoder" <
[email protected]> escribió en el mensaje
I'm really not going to find it for you, try comparing
yourself. Just create one project with that SDK selected
in wizard (which is compiling correctly) and another project
with same SDK added later through Configuration Settings
(which is not compiling). Then try comparing *.vcproj files
for both projects to find the difference. I bet it is some
preprocessor defs, paths or something similar ...
--
Oleg
cmp wrote:
Configuration working has this definitions in SDK: (I create my app
selecting in wizard all my SDKs)
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="1"
Name="VCCLCompilerTool"
Optimization="2"
PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;WINCE;_CONSOLE;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
RuntimeLibrary="0"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE"
Culture="1033"
AdditionalIncludeDirectories="$(IntDir)"
Name="VCLinkerTool"
AdditionalOptions=" /subsystem:windowsce,5.00"
OutputFile="$(OutDir)/md5sum_CE5-CE6.exe"
LinkIncremental="1"
DelayLoadDLLs="$(NOINHERIT)"
GenerateDebugInformation="true"
ProgramDatabaseFile="$(OutDir)/md5sum_CE5-CE6.pdb"
SubSystem="0"
StackReserveSize="65536"
StackCommitSize="4096"
OptimizeReferences="2"
EnableCOMDATFolding="2"
EntryPointSymbol=""
/>
In non-working project I do not have above definitions, except
OutputDirectory and IntermedaiteDirectory, that has different values.
In non-working project: (I create my app selecting one SDK and later I
try to add a new SDK using configuration manager).
OutputDirectory="$(SolutionDir)CCXP (ARMV4I)\$(ConfigurationName)"
IntermediateDirectory="CCXP (ARMV4I)\$(ConfigurationName)"
ConfigurationType="1"
why If I add SDK in a project already created, my project do not have
this definitions?
MS bug?
Thanks,
"voidcoder" <
[email protected]> escribió en el mensaje
It looks like some preprocessor defs are not defined
or defined incorrectly for the added manually configuration.
I'd open *.vcproj file in a text editor and compare
working configuration vs. non working...
--
Oleg
cmp wrote:
Thanks for your answer.
Error I get is:
1>main.c
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winnt.h(2975) : error C2061: syntax
error : identifier 'PCONTEXT'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winnt.h(2976) : error C2059: syntax
error : '}'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(1405) : error C2061:
syntax error : identifier 'LPCONTEXT'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(1405) : error C2059:
syntax error : ';'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(2089) : error C2146:
syntax error : missing ')' before identifier 'lpContext'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(2089) : error C2081:
'LPCONTEXT' : name in formal parameter list illegal
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(2089) : error C2061:
syntax error : identifier 'lpContext'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(2089) : error C2059:
syntax error : ';'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(2090) : error C2059:
syntax error : ')'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(2097) : error C2143:
syntax error : missing ')' before '*'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(2097) : error C2143:
syntax error : missing '{' before '*'
1>C:\Program Files\Windows CE
Tools\wce500\CCXP\include\ARMV4I\winbase.h(2098) : error C2059:
syntax error : ')'
1>.\main.c(122) : warning C4133: 'function' : incompatible types -
from 'LPTSTR' to 'const wchar_t *'
1>.\main.c(143) : error C2065:
'strcpy_instead_use_StringCbCopyA_or_StringCchCopyA' : undeclared
identifier
1>.\main.c(222) : error C2065:
'strcat_instead_use_StringCbCatA_or_StringCchCatA' : undeclared
identifier
1>.\main.c(228) : warning C4133: 'function' : incompatible types -
from 'WCHAR [260]' to 'LPCSTR'
1>.\main.c(242) : warning C4133: 'function' : incompatible types -
from 'CHAR [260]' to 'LPCWSTR'
1>cmd_opt.c
1>Generating Code...
1>Build log was saved at
"file://c:\samples\Md5SumTarget\Md5SumTarget\CCXP
(ARMV4I)\Release\BuildLog.htm"
1>Md5SumTarget - 14 error(s), 3 warning(s)
"voidcoder" <
[email protected]> escribió en el mensaje
I suspect some solution settings are not set
automatically when creating new configuration.
What exactly errors are you getting?
--
Oleg
cmp wrote:
Hi,
You are right, I try that option but I get errors when I build my
app with new SDK added.
If I create a new project and in the wizard I select my SDKs I can
build against all SDKs without errors.
any idea about why errors after adding a new SDK?
Thanks,
"voidcoder" <
[email protected]> escribió en el mensaje
Go to Configuration Manager and add a new configuration
(or copy one of the existing configs), then pick up
the right SDK name in "Platform" field.
--
Oleg
cmp wrote:
Hello,
If I have a Visual studio project configured to vbuild againts
one SDK.
How is the normal procedure to build that solution against other
different SDK that I have installed after previous application
was created.
Is there in VS any menu or any option to configure a new SDK to
add to our solution? or my solution only can configure SDKs in
the wizard when you create the app?
Thnaks team!