From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26932 invoked by alias); 10 Jun 2013 16:13:42 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 26887 invoked by uid 89); 10 Jun 2013 16:13:42 -0000 X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-lb0-f176.google.com (HELO mail-lb0-f176.google.com) (209.85.217.176) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 10 Jun 2013 16:13:41 +0000 Received: by mail-lb0-f176.google.com with SMTP id z5so6374901lbh.7 for ; Mon, 10 Jun 2013 09:13:38 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.152.45.65 with SMTP id k1mr5308599lam.78.1370880818596; Mon, 10 Jun 2013 09:13:38 -0700 (PDT) Received: by 10.112.168.163 with HTTP; Mon, 10 Jun 2013 09:13:38 -0700 (PDT) In-Reply-To: <1370879959438-945091.post@n5.nabble.com> References: <1370879959438-945091.post@n5.nabble.com> Date: Mon, 10 Jun 2013 16:13:00 -0000 Message-ID: Subject: Re: trouble using glob and wordexp From: Jonathan Wakely To: ballsystemlord Cc: gcc-help Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-06/txt/msg00054.txt.bz2 On 10 June 2013 16:59, ballsystemlord wrote: > I'm getting an error at compile time. > All the variables are declared and my glob sruct is declared like this: > > struct glob_t globualation > > I though I might use wordexp instead since it would be more suited to what > I'm doing but that fails with the same error exept it's wordexp's structure > that is the problem. > > I also tried this to no avail. > > Gcc complains that the struct size is unknown. Sounds like you didn't include glob.h but this isn't a GCC problem, it's just code that doesn't work.