Xref: utzoo comp.lang.c:13132 comp.std.c:408 comp.lang.scheme.c:16 comp.unix.questions:9600 Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!bellcore!faline!thumper!ulysses!andante!alice!debra From: debra@alice.UUCP (Paul De Bra) Newsgroups: comp.lang.c,comp.std.c,comp.lang.scheme.c,comp.unix.questions Subject: Re: ????? HELP!!! what is wrong with this code? ??????? Message-ID: <8271@alice.UUCP> Date: 7 Oct 88 03:27:05 GMT References: <456@mrsvr.UUCP> Reply-To: debra@alice.UUCP () Organization: AT&T, Bell Labs Lines: 25 In article <456@mrsvr.UUCP> ssa@mrsvr.UUCP (6607) writes: > > For the life of me I can't figure out what is wrong with the following > code!!!!... > when I compile it I get a message: > >"test.c", line 7: warning: illegal combination of pointer and integer, op = > (Please let's not flame this beginner, and let's not start a long discussion about what's wrong with this code) Your code is just fine. The problem is that you named your program "test". There is a standard utility "test" in /bin, and if that comes before your current directory in your $PATH, you actually execute /bin/test instead of your own program. When you run "dbx test" or something, you give "test" as argument, and that is not subject to PATH-search, so dbx will run your "test" instead of /bin/test. That's all. Paul. |-------------------------------------------------------------------------- |Paul De Bra | I am completely surrounded by giant bugs ! | |debra@research.att.com | There's millions of them, all over this code! | |uunet!research!debra | Beam me up quickly...Please... | |--------------------------------------------------------------------------