User forums > Help

vctoolkit: Cannot open input file 'SDL.obj'

(1/2) > >>

New User:
Trying to compile an the default project for sdl, and I get that error. I was using visual studio 6 and added the include path and lib paths. Anyone know how to fix this? Never encountered this problem with sdl with dev-c++ or visual studio.

rickg22:
As you've been noticing, most of our project templates are created by trial-and-error :oops: . How about creating a sample SDL project in dev-c++, importing it from Codeblocks and then posting here the contents of the .cbp file?

Anonymous:
Not too sure if the -lmingw32 will cause problems using the vctoolkit compiler.... Here is the cbp file:

<?xml version="1.0"?>
<!DOCTYPE Code::Blocks_project_file>
<Code::Blocks_project_file>
   <FileVersion major="1" minor="1"/>
   <Project>
      <Option title="Project1"/>
      <Option makefile="Makefile"/>
      <Option makefile_is_custom="0"/>
      <Option compiler="1"/>
      <Build>
         <Target title="default">
            <Option output="C:\Dev-Cpp\SDL.exe"/>
            <Option working_dir="."/>
            <Option object_output=".objs"/>
            <Option deps_output=".deps"/>
            <Option external_deps=""/>
            <Option type="1"/>
            <Option compiler="0"/>
            <Option projectResourceIncludeDirsRelation="1"/>
         </Target>
      </Build>
      <Linker>
         <Add library="mingw32 -lSDLmain -lSDL"/>
      </Linker>
      <Unit filename="main.cpp">
         <Option compilerVar="CPP"/>
         <Option target="default"/>
      </Unit>
   </Project>
</Code::Blocks_project_file>

Anonymous:
And now this:

Project   : Project1
Compiler  : Microsoft Visual C++ Toolkit 2003 (called directly)
Directory : C:\Dev-Cpp\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: main.cpp
Command execution failed...

mandrav:

--- Quote ---As you've been noticing, most of our project templates are created by trial-and-error
--- End quote ---

This is *so* untrue...


--- Quote ---Switching to target: default
Compiling: main.cpp
Command execution failed...
--- End quote ---


Enable the C::B debug log (Settings->Environment), restart C::B, recompile your project and when the "Command execution failed..." message appears, switch to the "Code::Blocks Debug" message tab and see what command is failing to execute. Please post this command here.

Have you tried compiling other stuff? Only the SDL template behaves like that?
I 'm asking because, usually, the "Command execution failed..." message appears when C::B is badly configured.

Create a new console project and build it. Does it build or not?

Yiannis.

Navigation

[0] Message Index

[#] Next page

Go to full version