Free2Code
 
Time: 2008-11-21, 09:49pm
compiling erros... fun...
Subject: compiling erros... fun...  ·  Posted: 2006-12-09, 07:14pm
Rank: ? (7)
Member #: 29355
here goes... got these while compiling the half life 2 SDK... I am compiling with the microsoft 2003 toolkit, using Code::Blocks and i have installed the MS platform SDK...

Code:
  1. LINK : fatal error LNK1181: cannot open input file 'C:\Program.obj'
  2. C:\mingw\bin\mingw32-make.exe: *** [Release HL2MP/client.dll] Error 1181


 
  Reply to this ·  Post link ·  Top
Subject: Re: compiling erros... fun...  ·  Posted: 2006-12-10, 03:05am
Rank: ? (767)
Member #: 11085
It is quite hard to tell what your problem is with such limited information, but my guess would be that the compiler is looking for the object files generated in your root folder (C:\) rather than wherever they are outputted.

- relpats_eht
 
  Reply to this ·  Post link ·  Top
Subject: Re: compiling erros... fun...  ·  Posted: 2006-12-10, 04:48am
Rank: ? (7)
Member #: 29355
what else do you need to know?

 
  Reply to this ·  Post link ·  Top
Subject: Re: compiling erros... fun...  ·  Posted: 2006-12-10, 06:05am
Rank: ? (767)
Member #: 11085
Your current settings for many things of which my knowledge of Code::Blocks is a bit too limited to list.

However, I suggest you check your linker settings to see if it is reading from the directory the objects are being outputted. Unless you are telling objects to be written in the root folder of your C drive, or you are coding in the root folder of your C drive for some nonsensical reason, that it is most likely your problem.

[edit]
Upon actually reading your post, it appears you are not actually using Microsofts compiler as you think, but the MinGW compiler. This may be the root of your problem, so I would check this first.

» Post edited 2006-12-10, 06:07am by relpats_eht.

- relpats_eht
 
  Reply to this ·  Post link ·  Top
Subject: Re: compiling erros... fun...  ·  Posted: 2006-12-10, 07:32am
Rank: ? (7)
Member #: 29355
hmm... when i used the MS rootkil 2003 it gave me an error stating mingw32-make.exe was missing... so i did the noob thing and downloaded the first thing with it... i will try adding the output folder to the linker settings... is the compiler options or the release options? Also on occation, after playing with things, i get a 'the input line is too long' error...

» Post edited 2006-12-10, 07:35am by shaunisradd.

 
  Reply to this ·  Post link ·  Top
Subject: Re: compiling erros... fun...  ·  Posted: 2006-12-10, 07:45am
Rank: ? (767)
Member #: 11085
I don't know where any of the settings can be found, but I do know that if you get an error about mingw32-make, then your IDE is most definitely not set up to use a Microsoft Compiler.

- relpats_eht
 
  Reply to this ·  Post link ·  Top
Subject: Re: compiling erros... fun...  ·  Posted: 2006-12-10, 08:05am
Rank: ? (7)
Member #: 29355
well... now i fixed those error ans now it cant find window.h... i thought tht came with the MS platform SDK

 
  Reply to this ·  Post link ·  Top
Subject: Re: compiling erros... fun...  ·  Posted: 2006-12-10, 11:54am
Rank: ? (767)
Member #: 11085
It probably does, and should if it doesn't. It should be in the top level of your include folder. Oh yes, and the name is "windows.h" (note the "s" at the end), just in case a misspelling was the problem.

- relpats_eht
 
  Reply to this ·  Post link ·  Top
Subject: Re: compiling erros... fun...  ·  Posted: 2006-12-10, 02:23pm
Rank: ? (7)
Member #: 29355
Code:
  1. The input line is too long.
  2. C:\mingw\bin\mingw32-make.exe: *** [Release HL2MP/client.dll] Error 255


current error...

 
  Reply to this ·  Post link ·  Top
Subject: Re: compiling erros... fun...  ·  Posted: 2006-12-10, 03:02pm
Rank: ? (767)
Member #: 11085
Are you using MinGW, or a Microsoft compiler? If you are attempting to use a Microsoft compiler, then I have already done all I can short of installing Code::Blocks, Windows (I know Code::Blocks is cross platform, but your compiler of choice isn't), and the MS Platform SDK and giving you instructions on how to set it up properly. Basically, all I can say is that as long as the word "MinGW" appears anywhere in the compiler name or output your settings are wrong and that you should probably ask in the Code::Blocks forum how to set the IDE up properly with your compiler.

- relpats_eht
 
  Reply to this ·  Post link ·  Top
Subject: Re: compiling erros... fun...  ·  Posted: 2006-12-10, 03:29pm
Rank: ? (7)
Member #: 29355
im just buying MS .NET studio 2k5... ill try it on there... thn anyways... =]

 
  Reply to this ·  Post link ·  Top
Subject: Re: compiling erros... fun...  ·  Posted: 2006-12-10, 03:42pm
Rank: ? (767)
Member #: 11085
Or, if you don't wish to purchase anything, you could use the MinGW compiler. I know how to set that up with Code::Blocks.

- relpats_eht
 
  Reply to this ·  Post link ·  Top
Subject: Re: compiling erros... fun...  ·  Posted: 2006-12-10, 06:10pm
Rank: ? (7)
Member #: 29355
how?

 
  Reply to this ·  Post link ·  Top
Subject: Re: compiling erros... fun...  ·  Posted: 2006-12-11, 08:34am
Rank: ? (767)
Member #: 11085
Starting afresh, you simply download and install MinGW, then install Code::Blocks. I am pretty sure the installer I linked inserts the proper path variables, so that should be about all there is to do.

- relpats_eht
 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons