67063

来自「神经网络昆斯林的新闻组分类2006」· 代码 · 共 43 行

TXT
43
字号
Xref: cantaloupe.srv.cs.cmu.edu comp.os.linux:37481 gnu.gcc.help:4786 comp.windows.x:67063 comp.windows.x.i386unix:1347Newsgroups: comp.os.linux,gnu.gcc.help,comp.windows.x,comp.windows.x.i386unixPath: cantaloupe.srv.cs.cmu.edu!magnesium.club.cc.cmu.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!europa.eng.gtefsd.com!howland.reston.ans.net!usc!cs.utexas.edu!geraldo.cc.utexas.edu!portal.austin.ibm.com!awdprime.austin.ibm.com!wpwoodFrom: wpwood@darkwing.austin.ibm.comSubject: GCC and Building the HP Widget Set on LinuxSender: news@austin.ibm.com (News id)Message-ID: <WPWOOD.93Apr20084337@darkwing.austin.ibm.com>Date: Tue, 20 Apr 1993 08:43:37 GMTReply-To: wpwood@austin.ibm.com (Bill Woodward)Organization: The Institute of Knowledge on JinxLines: 30I am currently attempting to get a copy of the HP Widget set compiledunder Linux (SLS Release with kernel 99.6) and am running into someproblems.  Actually, it seems that this is more of a GCC question,because I got it to compile without trouble using cc on an RS/6000.	Basically, there are a number of functions with prototypesset up in, let's say, CompositeP.h, for instance, the compositewidget's insert_child procedure is set up with the type :	typedef void (*XtWidgetProc) (Widget)but in several places in the HP source code, they reference theinsert_child procedure and pass it multiple arguments instead of justone, as the prototype suggests.  For example:	(*superclass->composite_class.insert_child)(w, args, p_num_args)Now, GCC chokes on this, giving an error message that too many argumentsare passed to the function.  So, does anyone have any suggestions as tohow to turn off this checking in GCC, or how I can go about changing thecode to accomodate this call without changing /usr/include/X11/CompositeP.h,or has anyone successfully built the HP widget set and have any suggestions.	Many thanks in advance for any help.--<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>Bill Woodward        | wpwood@austin.ibm.com   <-- Try this firstAIX Software Support | billw@aixwiz.austin.ibm.com  Graphics Group       | 512-838-2834I am the terror that flaps in the night.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?