compilation of c code from visualC++compiler 2008 and code is from linux os

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • priyanka23
    New Member
    • Sep 2010
    • 24

    #31
    Code:
    <?xml version="1.0" encoding="Windows-1252"?>
    <VisualStudioProject
    	ProjectType="Visual C++"
    	Version="9.00"
    	Name="license"
    	ProjectGUID="{AA684A7B-D8EB-409F-B64C-855521BE3C95}"
    	RootNamespace="license"
    	Keyword="Win32Proj"
    	TargetFrameworkVersion="196613"
    	>
    	<Platforms>
    		<Platform
    			Name="Win32"
    		/>
    	</Platforms>
    	<ToolFiles>
    	</ToolFiles>
    	<Configurations>
    		<Configuration
    			Name="Debug|Win32"
    			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
    			IntermediateDirectory="$(ConfigurationName)"
    			ConfigurationType="2"
    			CharacterSet="1"
    			>
    			<Tool
    				Name="VCPreBuildEventTool"
    			/>
    			<Tool
    				Name="VCCustomBuildTool"
    			/>
    			<Tool
    				Name="VCXMLDataGeneratorTool"
    			/>
    			<Tool
    				Name="VCWebServiceProxyGeneratorTool"
    			/>
    			<Tool
    				Name="VCMIDLTool"
    			/>
    			<Tool
    				Name="VCCLCompilerTool"
    				Optimization="0"
    				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;LICENSE_EXPORTS"
    				MinimalRebuild="true"
    				BasicRuntimeChecks="3"
    				RuntimeLibrary="3"
    				UsePrecompiledHeader="0"
    				WarningLevel="3"
    				DebugInformationFormat="4"
    				CompileAs="1"
    			/>
    			<Tool
    				Name="VCManagedResourceCompilerTool"
    			/>
    			<Tool
    				Name="VCResourceCompilerTool"
    			/>
    			<Tool
    				Name="VCPreLinkEventTool"
    			/>
    			<Tool
    				Name="VCLinkerTool"
    				AdditionalDependencies="ws2_32.lib"
    				LinkIncremental="2"
    				GenerateDebugInformation="true"
    				SubSystem="2"
    				TargetMachine="1"
    			/>
    			<Tool
    				Name="VCALinkTool"
    			/>
    			<Tool
    				Name="VCManifestTool"
    			/>
    			<Tool
    				Name="VCXDCMakeTool"
    			/>
    			<Tool
    				Name="VCBscMakeTool"
    			/>
    			<Tool
    				Name="VCFxCopTool"
    			/>
    			<Tool
    				Name="VCAppVerifierTool"
    			/>
    			<Tool
    				Name="VCPostBuildEventTool"
    			/>
    		</Configuration>
    		<Configuration
    			Name="Release|Win32"
    			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
    			IntermediateDirectory="$(ConfigurationName)"
    			ConfigurationType="2"
    			CharacterSet="1"
    			WholeProgramOptimization="1"
    			>
    			<Tool
    				Name="VCPreBuildEventTool"
    			/>
    			<Tool
    				Name="VCCustomBuildTool"
    			/>
    			<Tool
    				Name="VCXMLDataGeneratorTool"
    			/>
    			<Tool
    				Name="VCWebServiceProxyGeneratorTool"
    			/>
    			<Tool
    				Name="VCMIDLTool"
    			/>
    			<Tool
    				Name="VCCLCompilerTool"
    				Optimization="2"
    				EnableIntrinsicFunctions="true"
    				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LICENSE_EXPORTS"
    				RuntimeLibrary="2"
    				EnableFunctionLevelLinking="true"
    				UsePrecompiledHeader="0"
    				WarningLevel="3"
    				DebugInformationFormat="3"
    			/>
    			<Tool
    				Name="VCManagedResourceCompilerTool"
    			/>
    			<Tool
    				Name="VCResourceCompilerTool"
    			/>
    			<Tool
    				Name="VCPreLinkEventTool"
    			/>
    			<Tool
    				Name="VCLinkerTool"
    				LinkIncremental="1"
    				GenerateDebugInformation="true"
    				SubSystem="2"
    				OptimizeReferences="2"
    				EnableCOMDATFolding="2"
    				TargetMachine="1"
    			/>
    			<Tool
    				Name="VCALinkTool"
    			/>
    			<Tool
    				Name="VCManifestTool"
    			/>
    			<Tool
    				Name="VCXDCMakeTool"
    			/>
    			<Tool
    				Name="VCBscMakeTool"
    			/>
    			<Tool
    				Name="VCFxCopTool"
    			/>
    			<Tool
    				Name="VCAppVerifierTool"
    			/>
    			<Tool
    				Name="VCPostBuildEventTool"
    			/>
    		</Configuration>
    	</Configurations>
    	<References>
    	</References>
    	<Files>
    		<Filter
    			Name="Source Files"
    			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
    			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
    			>
    			<File
    				RelativePath=".\license.c"
    				>
    			</File>
    		</Filter>
    		<Filter
    			Name="Header Files"
    			Filter="h;hpp;hxx;hm;inl;inc;xsd"
    			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
    			>
    		</Filter>
    		<Filter
    			Name="Resource Files"
    			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
    			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
    			>
    		</Filter>
    	</Files>
    	<Globals>
    	</Globals>
    </VisualStudioProject>
    Last edited by Frinavale; Sep 15 '10, 01:49 PM. Reason: Please post code within [code] ... [/code] tags. Added code tags.

    Comment

    • ashitpro
      Recognized Expert Contributor
      • Aug 2007
      • 542

      #32
      How do you building the project? Under 'Debug' or 'Release' mode?

      Comment

      • priyanka23
        New Member
        • Sep 2010
        • 24

        #33
        under Build tag using build solution...

        Comment

        • priyanka23
          New Member
          • Sep 2010
          • 24

          #34
          under Build menutag using build solution...

          Comment

          • ashitpro
            Recognized Expert Contributor
            • Aug 2007
            • 542

            #35
            Go to
            Build->Configuratio n Manager

            Look for "Active Solution Configuration"

            Tell me what is it?

            Comment

            • priyanka23
              New Member
              • Sep 2010
              • 24

              #36
              under debug.....

              Comment

              • priyanka23
                New Member
                • Sep 2010
                • 24

                #37
                in debug mode.....

                Comment

                • ashitpro
                  Recognized Expert Contributor
                  • Aug 2007
                  • 542

                  #38
                  Here is the last step I can suggest.

                  Go to:

                  Solution Explorer->(right click your project that is 'license')->Properties->(On top left corner there is 'Configuration' )->Select 'All Configurations'

                  Then on same window go to:
                  Configuration Properties->Linker->input

                  under 'Additional Dependencies' put 'ws2_32.lib'

                  Click OK

                  Now, go to Build->(Instead of 'Build Solution' try 'Rebuild Soulution')

                  Comment

                  • priyanka23
                    New Member
                    • Sep 2010
                    • 24

                    #39
                    thanks a lot.. but i hv already done evry thing....but plz help me bcz i hv to submit my project widin 2 days...plz..... .......

                    Comment

                    • ashitpro
                      Recognized Expert Contributor
                      • Aug 2007
                      • 542

                      #40
                      try adding 'WSock32.Lib' under linker->input->additional dependencies.

                      Keep ws2_32.lib

                      Comment

                      • priyanka23
                        New Member
                        • Sep 2010
                        • 24

                        #41
                        i have tried it also....but i noticed that placing WSA startup call at different places different errors are coming.......

                        Comment

                        Working...