小编Jef*_*ser的帖子

在Windows上使用MinGW构建黄金链接器,FLEX/bison'YYSTYPE'未在此范围内声明

我正在尝试使用mingw构建GNU binutils中包含的黄金链接器.我采取的步骤 -

  1. 使用安装程序安装所有包的mingw.
  2. 使用Windows安装程序将Windows版本的FLEX安装到默认位置.
  3. 从mingw shell中的gold链接器目录中运行./configure,这似乎工作正常
  4. 运行make,这是我遇到一些错误的地方.

我已经将./configure的完整输出包含在了一个pastebin中:http: //pastebin.com/1XLkZVVm

但重要的是这个:

make[2]: Entering directory `c:/binutils-2.23.1/binutils-2.23.1/gold'
g++ -DHAVE_CONFIG_H -I.  -I. -I./../include -I./../elfcpp -DLOCALEDIR="\"/usr/lo
cal/share/locale\"" -DBINDIR="\"/usr/local/bin\"" -DTOOLBINDIR="\"/usr/local//bi
n\"" -DTOOLLIBDIR="\"/usr/local//lib\""   -W -Wall    -Wno-format -Werror -D_LAR
GEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=expression.o  -MT expression.
o -MD -MP -MF .deps/expression.Tpo -c -o expression.o expression.cc
In file included from expression.cc:33:0:
script-c.h:221:7: ???: 'yylex' initialized and declared 'extern' [-Werror]
script-c.h:221:7: ???: 'YYSTYPE' was not declared in this scope
script-c.h:221:15: ???: expected primary-expression before ',' token
script-c.h:221:17: ???: expected …
Run Code Online (Sandbox Code Playgroud)

c++ mingw binutils gold-linker flex-lexer

5
推荐指数
1
解决办法
1226
查看次数

有没有比这更好的方法来检查一个值是空白还是空

我刚从另一个开发人员那里接管了一个项目,代码中有很多if语句:

if( value != null || value != "" || value != undefined )
{
    doSomeThing();
}
Run Code Online (Sandbox Code Playgroud)

虽然好,但到处使用时会有点混乱.有没有更好,更整洁的方式来写这个?我在想这个

if( value.length > 0 || value != undefined )
{
    doSomeThing();
}
Run Code Online (Sandbox Code Playgroud)

你们都觉得怎么样?

谢谢

斯蒂芬

actionscript-3

4
推荐指数
1
解决办法
2万
查看次数

在Spark TextArea中显示HTML文本

下面的代码运行良好......

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
      xmlns:s="library://ns.adobe.com/flex/spark" 
      xmlns:mx="library://ns.adobe.com/flex/mx" >
 <fx:Declarations>
  <mx:HTTPService id="httpRSS" url="http://www.petefreitag.com/rss/" resultFormat="object" />
 </fx:Declarations>
  <s:Panel id="reader" title="Blog Reader" width="500">
  <mx:DataGrid width="485" id="entries" dataProvider="{httpRSS.lastResult.rss.channel.item}" click="{body.htmlText=httpRSS.lastResult.rss.channel.item[entries.selectedIndex].description}">
   <mx:columns>
    <mx:DataGridColumn dataField="title" headerText="TITLE"/>
    <mx:DataGridColumn dataField="pubDate" headerText="Date"/>    
   </mx:columns>
  </mx:DataGrid>
  <mx:TextArea id="body" editable="false" width="485" x="3" y="142" height="155"/>
 </s:Panel>
 <s:Button label="Load" x="10" y="329" click="{httpRSS.send()}"/>
 </s:Application>
Run Code Online (Sandbox Code Playgroud)

但是当Textarea改为像下面那样激发Textrea时

<s:TextArea id="body" editable="false" width="485" x="3" y="142" height="155"/>
Run Code Online (Sandbox Code Playgroud)

然后htmlText不支持Spark Textarea.因此产生错误.如何使用spark Text Area Property显示HTML格式的文本.

apache-flex flexbuilder flex3 flex4

3
推荐指数
1
解决办法
1万
查看次数

与SWFLoader一起使用时,警报会出现PopUpManager错误

我正在使用SWFLoader加载swf文件.代码如下:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <mx:SWFLoader source="alerttesting.swf"/>
</s:Application>
Run Code Online (Sandbox Code Playgroud)

并且alerttesing.swf代码给出了打击:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
            width="100%" height="100%" fontFamily="Arial" fontSize="12"
            xmlns:ilog="http://www.ilog.com/2007/ilog/flex"       
            xmlns:local="c7.views.apps.calendar.*"
            backgroundColor="#FFFFFF">

<mx:Script>
    <![CDATA[
        import mx.controls.Alert
        public function testingalerta():void{
            Alert.show("sa;lfks;aljfa;sljf");
        }
    ]]>
</mx:Script>
<mx:Canvas>
    <mx:VBox>
        <mx:Button click="testingalerta()"/>
        <mx:Button label="aslkdfjasj" click="{Alert.show('sdfslfjlsjf;asjfa;sj');}"/>   
    </mx:VBox>
</mx:Canvas>


</mx:Application>
Run Code Online (Sandbox Code Playgroud)

每次我点击按钮,我都会收到以下错误:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.managers::PopUpManagerImpl/http://www.adobe.com/2006/flex/mx/internal::createModalWindow()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:686]
    at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:401]
    at mx.managers::PopUpManager$/addPopUp()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:193]
    at mx.controls::Alert$/show()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Alert.as:618]
    at …
Run Code Online (Sandbox Code Playgroud)

apache-flex swfloader

3
推荐指数
1
解决办法
1420
查看次数

有多少百分比的企业禁止员工使用Flash插件?

我有时会看到企业禁止Flash的报道.比如这里来自Adobe:

"一些雇主因为担心将用于视频(消耗过多的带宽)或游戏(消耗工作时间)而禁止使用Flash Player." 从这个链接:

http://www.adobe.com/devnet/flashplayer/enterprise_deployment.html

和这里:

http://netforbeginners.about.com/od/f/f/flash.htm

我正在考虑将Flex用于外部企业需要访问的Web应用程序作为我的客户.我想知道是否有任何传统智慧这种阻塞是多么普遍(企业阻止它的百分比;和/或哪些企业阻止它,如果有人有例子).

到目前为止,我知道iOS阻止闪存,但不知道任何公司作为政策问题.

任何反馈意见.

apache-flex flash

2
推荐指数
1
解决办法
141
查看次数

如何在flex中将layout设置为titleWindow?

<fx:Script>

private function showSuccessDialog(msg:String):void
            {
                var label:Label = new Label();
                label.text = msg;               
                label.width = 290;
                label.x = 20;
                label.y = 30;   

                var btnok:Button = new Button();
                btnok.label = "OK";
                btnok.width = 100;
                btnok.x = 100;
                btnok.y = label.y + 30; 

                titleWindow = new TitleWindow();
                titleWindow.title = "Success";
                titleWindow.width = 300;

//when i add this two elements label and button both are displayed on same position
//my label size increases dynamically so i want to add that button below that …
Run Code Online (Sandbox Code Playgroud)

apache-flex actionscript-3

1
推荐指数
1
解决办法
1823
查看次数

如何在Angular中设置级联下拉列表?

我有一个带有一些选项的角度下拉列表.可以说我们有一个下拉列表

[清单]
A
B
C
D
E
F.

如果您选择A,您将看到另一个下拉列表:

[列表]
A-1
A-2
A-3
A-4

并且使用B

[List]
B-1
B-2

所以第二个列表取决于您在第一个列表中选择的内容.到目前为止我得到了这个.

HTML

<div class="" ng-show="signIn">
    <select ng-model="myProject" ng-options="proj.title for proj in projects | unique:'title'"><option value="">-- choose project --</option></select>
    <select ng-options="myProject.name"></select>
</div>
Run Code Online (Sandbox Code Playgroud)

问题是我无法在第一个列表中使用绑定变量.实现此目的的最佳方法是什么.

angularjs drop-down-menu ng-options

1
推荐指数
1
解决办法
1713
查看次数

如何在flexslider上获得控制导航?

我是flexslider的新手(http://www.woothemes.com/flexslider),并且很难让控件导航器位于滑块图像的顶部.我希望它位于图像的右下角.但无论我在样式上做什么,它总是默认在滑块下面.你可以在这里看到这个网站:http://dakar.bournemouth.ac.uk/~hmonaghan/

非常感谢任何帮助,欢呼!

HTML:

<div id="header" class="flexslider">
<ul class="slides">
<li>
    <div class="slidertext-holder">
    <div class="slidertext">
        <h1>"Donec auctor volutpat lorem, nec cursus augue congue ac. Curabitur malesuada lacinia lorem..."</h1>
        <h2>WARREN MOORE</h2>
    </div>
    </div>
    <img src="images/headerfootball.png">
</li>
<li>
    <div class="slidertext-holder">
    <div class="slidertext">
        <h1>"Duis non metus ipsum. Maecenas sit amet risus ut ligula tempus commodo a in justo."</h1>
        <h2>SOMEONE ELSE</h2>
    </div>
    </div>
  <img src="images/headerfootball.png">
</li>
<li>
    <div class="slidertext-holder">
    <div class="slidertext">
        <h1>"Luke, I am your father."</h1>
        <h2>DARTH VADER</h2>
    </div>
    </div>
  <img …
Run Code Online (Sandbox Code Playgroud)

html css slider flexslider

0
推荐指数
1
解决办法
1万
查看次数