From owner-freebsd-questions Fri Dec 21 23:38:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from relay.pair.com (relay1.pair.com [209.68.1.20]) by hub.freebsd.org (Postfix) with SMTP id BEA4A37B405 for ; Fri, 21 Dec 2001 23:38:40 -0800 (PST) Received: (qmail 46850 invoked from network); 22 Dec 2001 07:38:39 -0000 Received: from softdnserror (HELO mail.bacxs.com) (67.8.24.120) by relay1.pair.com with SMTP; 22 Dec 2001 07:38:39 -0000 X-pair-Authenticated: 67.8.24.120 Received: from massive.bacxs.com by mail.bacxs.com with SMTP (MDaemon.PRO.v5.0.0d.R) for ; Sat, 22 Dec 2001 02:37:20 -0500 Message-Id: <5.1.0.14.0.20011221105013.00adb078@127.0.0.1> X-Sender: mwoodson@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sat, 22 Dec 2001 02:37:19 -0500 To: freebsd-questions@freebsd.org From: Mark Woodson Subject: More specific help with lame and ices In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Return-Path: mwoodson@bacxs.com X-MDaemon-Deliver-To: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG After digging deeper into the problem I'm having getting ices-0.2.2 and lame 3.89 to compile, I've narrowed the problem down to one line. Unfortunately my C skills were never great so... The compilation is failing where the function lame_init() is called. It's called with no parameters "lame_init()' and the compiler complains because it's defined with one parameter, a struct "lame_global_flags". The prototype for lame_init is: void lame_init(lame_global_flags *); Which makes it a pointer to the struct, right? The line in reencode.c that's causing all the trouble is: if (! (stream->encoder_state = lame_init ())) { So I figured I could just change it to: if (! (stream->encoder_state = lame_init ( lame_global_flags* ) )) { But it doesn't work, I just get a different error message "Syntax error before 'lame_global_flags'" on that line. Can anyone point out what I'm missing? -Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message