delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/02/09/17:30:22

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
X-Spam-Score: -90.433
Message-ID: <4990AE5C.3060609@sh.cvut.cz>
Date: Mon, 09 Feb 2009 23:29:48 +0100
From: =?UTF-8?B?VsOhY2xhdiBIYWlzbWFu?= <v DOT haisman AT sh DOT cvut DOT cz>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: FW: GLUI and GLUIX
References: <BAY123-W415DBFDD51633A194D4785AFBC0 AT phx DOT gbl> <COL104-W569C84D42B4DFA8C0C239D93BC0 AT phx DOT gbl> <BAY123-W850FE0527AF50F0CA2553AFBC0 AT phx DOT gbl>
In-Reply-To: <BAY123-W850FE0527AF50F0CA2553AFBC0@phx.gbl>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Jamie Sandell wrote, On 9.2.2009 23:17:
> Hi Andre, I have a problem. I'm trying to use GLUI with GLUIX. I can use
> GLUI fine on it's own and have been doing for some time.
> 
> If I have this:
> 
> #include "glui.h" #include "gluix.h"
> 
> Then I get the errors: Error    25    error LNK2019: unresolved external
> symbol "public: int __thiscall GLUIX_FileSelectionDialog::set_text(enum
> GLUIX_FSD_Part,char *)"
> (?set_text AT GLUIX_FileSelectionDialog@@QAEHW4GLUIX_FSD_Part@@PAD AT Z)
> referenced in function "void __cdecl setupGLUI(void)" (?setupGLUI@@YAXXZ)
> GLUI_Window_Template.obj    Prototype_01 Error    26    error LNK2019:
> unresolved external symbol "public: __thiscall
> GLUIX_FileSelectionDialog::GLUIX_FileSelectionDialog(char *,void
> (__cdecl*)(char *,char *,char *),int,int,int,int,int,int,int)"
> (??0GLUIX_FileSelectionDialog@@QAE AT PADP6AX000@ZHHHHHHH AT Z) referenced in
> function "void __cdecl setupGLUI(void)" (?setupGLUI@@YAXXZ)
> GLUI_Window_Template.obj    Prototype_01 Error    27    fatal error
> LNK1120: 2 unresolved externals
> C:\work\3rd_year\08341\Prototype_12\Debug\Prototype_01.exe    Prototype_01
> 
> 
> But I have them in this order I get these errors: Error    1    error
> C2061: syntax error : identifier 'Byte'
> c:\work\3rd_year\08341\prototype_12\prototype_01\gluix.h    89
> Prototype_01 Error    2    error C2061: syntax error : identifier 'GLUI'
> c:\work\3rd_year\08341\prototype_12\prototype_01\gluix.h    123
> Prototype_01
> 
> I'm not sure how to fix it? Thanks for your time.
You are obviously using MSVC to compile your code. You cannot use MSVC with
Cygwin libraries. So, to fix it, first step would be to stop using MSVC and
start using Cygwin GCC.

- --
VH

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)

iFYEAREIAAYFAkmQrlwACgkQhQBMvHf/WHkhowDeKk8Wv8AFQtQ6Td1MW8MaYIwL
MGnBr13NDAkrMwDfctesa0NDDA7rlTAGSspxkNhHVhqg2s/iSNF9Gw==
=YulC
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019