Error C1189: #error : ERROR: You must use a GNU Compiler.
Hi everyone!
I have just ran into an error in which I don't know how to resolve. I'm trying to compile some code I have but it gives me the following : error C1189: #error : ERROR: You must use a GNU Compiler.
Before receiving this error I had received one stating that the header file "_mingw.h" was missing. I located that file and placed it in the correct folder. I also updated the project properties to locate the header file. The error itself says
that I must use a GNU Compiler but I'm not exactly sure how to do this.I do have mingw installed on the PC though
The error points to this part of the code :
#define __MINGW32_VERSION 3.2
#define __MINGW32_MAJOR_VERSION 3
#define __MINGW32_MINOR_VERSION 20
#define __MINGW32_PATCHLEVEL 0
#ifndef __GNUC__
#error ERROR: You must use a GNU Compiler.
#endif
#if (__GNUC__ < 3 || !defined(__GNUC_MINOR__) || (__GNUC__ == 3 && __GNUC_MINOR__ < 4) || (__GNUC__ == 3 && __GNUC_MINOR__ == 4 && __GNUC_PATCHLEVEL__ < 5))
#error ERROR: You must use a GNU Compiler version >= 3.4.5.
#endif
Also to note, I have the most recent version 4.8.4.1 of the compiler.
Any ideas on what I should so to fix this? Did placing the _mingw.h file in the folder have anything to do with it?
I would appreciate any help!! :-)
It appears that the author of the code you are compiling intended it to be compiled with the GNU compiler, not the Visual C++ compiler. So they manually inserted an error message (guarded by the #ifndef __GNUC__ check) so that if you compiled it on
Visual Studio, you'd be alerted to that fact.
I'm afraid you are now faced with either porting this code or finding a Windows distribution of it that is compatible with Visual Studio.
*NOT RECOMMENDED*, but to begin the process of porting it , simply delete the #error line from the source code and recompile with visual studio. You can expect millions of specific issues will need further attention. After all, it's probably
there for a reason. If you are new to this, that's probably NOT what you want to do.
On the other hand, what were you trying to compile that needed _mingw.h? That's the piece that needs to be configured correctly. You are likely not building it as the author intended.
Similar Messages
-
Error "Members, tuples or sets must use the same hierarchies in the function" in MDX
the following MDX returns error: "Members, tuples or sets must use the same hierarchies in the function"
WITH
MEMBER [Measures].[Prev Year] AS
[Measures].[returns],
PARALLELPERIOD
[Exec Date].[Year].Levels('Year'),
1,
[Exec Date].[Year].CURRENTMEMBER
MEMBER [Measures].[Prev Month] AS
[Measures].[returns],
PARALLELPERIOD
[Exec Date].[Month Num].Levels('Month Num'),
1,
[Exec Date].[Month Num].CURRENTMEMBER
MEMBER [Measures].[Prev Day] AS
[Measures].[returns],
PARALLELPERIOD
[Exec Date].[Day].Levels('Day'),
1,
[Exec Date].[Day].CURRENTMEMBER
SELECT NON EMPTY { StrToMember("@ExecDateLevel"), [Measures].[returns] } ON COLUMNS, NON EMPTY { ([Employees].[Company].[Company].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM (
SELECT (
STRTOSET(@ExecDateHierarchy, CONSTRAINED)
) ON COLUMNS FROM [cbSales]) WHERE ( IIF( STRTOSET(@ExecDateHierarchy, CONSTRAINED).Count = 1, STRTOSET(@ExecDateHierarchy, CONSTRAINED), [Exec Date].[Hierarchy].currentmember ) ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
and when I replace "StrToMember(@ExecDateLevel)" with
StrToMember("[Measures].[Prev Month]") the MDX is compiled correctly.
what is the problem?
How can I solve that?Hi Breceive,
In your scenario, the issue is caused by that you select dimension members and measures on the same axis without a crossjoin.
SELECT NON EMPTY { StrToMember("@ExecDateLevel"), [Measures].[returns] } ON COLUMNS
To avoid this issue, you can use the query below.
WITH
MEMBER [Measures].[Prev Year] AS
[Measures].[returns],
PARALLELPERIOD
[Exec Date].[Year].Levels('Year'),
1,
[Exec Date].[Year].CURRENTMEMBER
MEMBER [Measures].[Prev Month] AS
[Measures].[returns],
PARALLELPERIOD
[Exec Date].[Month Num].Levels('Month Num'),
1,
[Exec Date].[Month Num].CURRENTMEMBER
MEMBER [Measures].[Prev Day] AS
[Measures].[returns],
PARALLELPERIOD
[Exec Date].[Day].Levels('Day'),
1,
[Exec Date].[Day].CURRENTMEMBER
SELECT NON EMPTY { StrToMember("@ExecDateLevel")*[Measures].[returns] } ON COLUMNS, NON EMPTY { ([Employees].[Company].[Company].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM (
SELECT (
STRTOSET(@ExecDateHierarchy, CONSTRAINED)
) ON COLUMNS FROM [cbSales]) WHERE ( IIF( STRTOSET(@ExecDateHierarchy, CONSTRAINED).Count = 1, STRTOSET(@ExecDateHierarchy, CONSTRAINED), [Exec Date].[Hierarchy].currentmember ) ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
Here is a similar thread for you reference.
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/3c21d9a8-640d-4dde-bc76-08d1fcbb3a31/multiple-dimension-query?forum=sqlanalysisservices
Regards,
Charlie Liao
TechNet Community Support -
when i login to MES operator resp..i get a error saying...You must setup an HR employee for this Oracle Application user...how to resolve this?
Hey everyone in Apple world!
I figured out how to fix the flashing yellow screen problem that I've been having on my MBP! Yessssss!!!
I found this super handy website with the golden answer: http://support.apple.com/kb/HT1379
I followed the instructions on this page and here's what I did:
Resetting NVRAM / PRAM
Shut down your Mac.
Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
Turn on the computer.
Press and hold the Command-Option-P-R keys before the gray screen appears.
Hold the keys down until the computer restarts and you hear the startup sound for the second time.
Release the keys.
I went through the 6 steps above twice, just to make sure I got rid of whatever stuff was holding up my bootup process. Since I did that, my MBP boots up just like normal. No flashing yellow screen anymore!!
(Note that I arrived at this solution when I first saw this page: http://support.apple.com/kb/TS2570?viewlocale=en_US)
Let me know if this works for you!
Elaine -
ClassCastException: You must use ResultSet from this driver!class webl
Hi,
I have configured the Connection pool and DataSources for SQLServer using inet-OPTA
drivers.
I am using the CachedRowSet implementation from inet and it seems to bomb out
with the following error stack trace:
STACK TRACE:
java.lang.ClassCastException: You must use ResultSet from this driver!class webl
ogic.jdbc.rmi.SerialResultSet
at com.inet.tds.CachedRowSet.a(Unknown Source)
at com.inet.tds.CachedRowSet.populate(Unknown Source)
Any ideas of what is causing this problem ?
Is it that i cannot use the CachedRowSet implementation from inet.
If that is the case we have lot of code that uses this and i will have to change
a lot.
Any help is appreciated
Thanks
VenuThe code is in one of the utility classes that is in the classpath and this utility
class is used by the Stateless session EJB that i deployed in the WebLogic AppServer.
As i understand, Weblogic 8.1 is out and i will try running on it.
Thanks
Venu
Joseph Weinstein <[email protected]_this> wrote:
>
>
venu wrote:
Hi,
I am running WebLogic version 7.0.2
Do you have any idea when the 8.1 will be available (i believe it isstill in
beta)
I'll find out. Do answer my other question: Where is this code running
that gets the exception?
Joe
- Srini
Joseph Weinstein <[email protected]_this> wrote:
venu wrote:
Hi,
I have configured the Connection pool and DataSources for SQLServerusing inet-OPTA
drivers.
I am using the CachedRowSet implementation from inet and it seems
to
bomb out
with the following error stack trace:
STACK TRACE:
java.lang.ClassCastException: You must use ResultSet from this driver!classwebl
ogic.jdbc.rmi.SerialResultSet
at com.inet.tds.CachedRowSet.a(Unknown Source)
at com.inet.tds.CachedRowSet.populate(Unknown Source)
Any ideas of what is causing this problem ?
Is it that i cannot use the CachedRowSet implementation from inet.
If that is the case we have lot of code that uses this and i will
have
to change
a lot.
Any help is appreciated
Thanks
VenuHi. What version of the server are you using. This problem will goaway
for 8.1.
We currently wrap all JDBC objects from pooled drivers, to maintaincontrol
over
the pooled connection. Where is this code running that gets the exception.
It seems that Inet's rowset implementation needs to cast the resultset
it gets
to be inet's result set object, in order to make some non-standardmethod
calls.
Joe -
I am trying connect to a SQL instance for our CRM program and I am receiving To Connect to this Server you must use SQL Management Studio or SQL Server Management
This is a Brand new Server 2012 that is running our CRM product and it is trying to connect to a Server 2008 R2 server with SQL Server 2008 R2 SP2 instance (10.50.4000)
I have seen this in the past where it needed the 2005 backwards compatibility components installed but those are not supported on 2012 server and this is not a 2005 SQL instance.
I am trying to install the Shared Management Objects for SQL Server 2008 but it tells me I need to install the CLR types, which I did install. But it continues to tell me to install the CLR types.
Has anyone ran into any issues like this? (this happens trying to connect to multiple SQL Servers from this new 2012 Server)
Thanks!
-MaxHello,
Which version and edition of the SQL Server instance did you installed on the new server machine? If you install SQL Server 2012 Express edition, you can try to install SQL Server Management Studio 2012 from
this link.
You can connect to SQL Server 2008 R2 or earily verions with SSMS 2012.
What's more, Microsoft SQL Server 2008 Management Objects Collection requires Microsoft Core XML Services (MSXML) 6.0, Microsoft SQL Server Native Client, and Microsoft SQL Server System CLR Types. You can try to download and install
SQL Serve 2008 Feature Pack
which contains packages above.
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
You must use APOP to connect to this server
The following code yields AuthenticationFailedException("You must use APOP to connect to this server"):
Thanks!
Here's the code and the debug
Properties properties = System.getProperties();
properties.setProperty("mail.pop3.apop.enable","true");
Session session = Session.getDefaultInstance(properties, null);
session.setDebug(true);
store = session.getStore("pop3");
store.connect(server, user, password);//BEGIN DEBUG
DEBUG: setDebug: JavaMail version 1.3
DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]
POP3: connecting to host "DONTPOST", port DONTPOST
S: +OK QPOP (version 2.53) at bolg starting. <DONTPOST.DONTPOST@DONTPOST>
C: USER mknight
S: -ERR You must use APOP to connect to this server
C: QUIT
S: +OK Pop server at DONTPOST signing off.
javax.mail.AuthenticationFailedException: You must use APOP to connect to this server
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:104)
at javax.mail.Service.connect(Service.java:233)
at javax.mail.Service.connect(Service.java:134)
at .........
//END DEBUGI had the same problem, make sure you have a recent mail.jar from the Javamail API. Upgrading the Javamail API did the trick for me.
The A does NOT stand for anonymous. The APOP command is to used to log without sending cleartext passwords over the line. The syntax is APOP <user> <digest>. See http://www.faqs.org/rfcs/rfc1939.html. -
when i am copy the vi that is in find example>fuzzy>fuzzyEx with pi control the follwing error occuring
'error 1430 occured at open/create/replacefile in NI Fuzzy logic API.LVLIB FL LOAD FUZZY SYTEM.vi
untitel 3 possible reason the pat is empty or relative you must se use an absolute patth <not apath>
plz help me i only want that i can copy this vi in new vi but when i do so the above error occur and fuzzy logic cotroller is highlitedHello Nofil,
This is probably happening because you have made a copy of the VI without changing the name/ location on the disc. I have saved a copy of the VI for you, it is in LabVIEW 2010 SP1, please ask if you want this in a previous version.
Regards
Andrew George @ NI UK
Attachments:
Fuzzy Tanks with PI.vi 31 KB -
A Runtime error: Generation successful, but you must call up the function
I used Professor Jim Menching's AIS materials in fall 2009 before ECC 6.04 was installed and everything worked plug-n-play without too many problems. I tested assigned client after my client provider migrated SAP from ECC 6.0 to 6.04.
I tried to proceeded "receive the product from the vendor" on page 13u2019s step 11 after creating an purchase order, as following:
Logistics> Materials Management > Purchasing > Purchase Order > Follow-on Functions > Logistics Invoice Verification (MIRO)
I tried to save it. However, I got an error message: "Generation successful, but you must call up the function". After I did it one more time, it becomes a runtime error! I am not savvy for dealing with unknown technical problem. Can anyone provide me with a solution to fix problem?
Thanks in advance.Picheng,
Thanks for the post. I forwarded your question to your hosting site for resolution since this is a technical issue ... and the technical team informed me the issue was already resolved. If you have further issues related to this specific issue please contact the UCC directly.
Best Regards,
Heather -
When I try to open a PDF on a Web page I get the following message:
"Before proceeding you must fist launch Adobe Acrobat and accept the End User License Agreement"
I Installed the Adobe Acrobat XI pro an my MAC and after registration, the programm runns perfect. How can I solve the above mentioned problem?Open it again and see if you get a request to accept the EULA. If not, then go to the help menu and run repair, followed by updates.
-
I'm setting up my devices with the find my phone app. I have accomplished setting up 2 devices. The third I can't setup because I can't change the iCloud account.
My understanding from reading that the iCloud accounts must use the same name on all devices. How do I change that account in my phone settings?You don't have to use the same iCloud account in order to track all your devices. You just have to sign into the iCloud account being used on the device you are trying to track in order to track it. When you sign in on icloud.com and open Find My iPhone, you will see all the devices with Find My iPhone enabled that are using the account you signed in with. To track a device using a different account, simply sign out, then sign back in using the ID the new device is using.
The Find My iPhone app works the same way. It will display devices based on the iCloud account you sign in with on the app. To track a device using a different account, sign out, then sign back in with the iCloud ID that the new device is using. -
Once again, I am trying to download Yahoo messenger and It only has tips for Internet explorer We only have Firefox (mozilla) installed and so I need help getting around this in order to install.
And they do offer a compatible version. As I am running running Netflix on my first generation iPad just fine.
You'll need to first "purchase" the non compatible version either on a newer device that can run it or on a computer running iTunes using the Apple ID that is on the first Gen iPad.
After that is done, you should be able to go into the App Store App, and find Netflix under the Purchased Tab. Tap on it to download it and you should be warned its not compatible, but will be offered the compatible version.
App Store: Install the latest compatible version of an app
http://support.apple.com/kb/ht5919 -
Is there any way to use Internet Explorer on a Mac Book Pro? I have one company that I do business with that only uses Internet Explorer
Internet Explorer is not available for Mac.
But you can make Safari pretend to be Internet Explorer in some cases.
Safari > Preference > Advanced
Checkmark the box for "Show Develop menu in menu bar".
"Develop" menu will appear in the Safari menu bar.
Click Develop, move mouse down to "User Agent".
Select Internet Explorer from popup on the rightside.
After using Internet Explorer, revert back to Safari, doing the same routine. -
This has been going on for quite a while. I am able to send/purchase gifts from my iMac however; when I attempt to purchase a gift on my iPhone 5s (iOS 7.0.4) or my iPad Air (iOS 7.0.4 ) i get the following error message:
Invalid Gift
You must enter a valid recipient email address.
This happens no matter what email address I type in. Once this message comes up you can only select "OK". It never let's me finish my purchase.
Any ideas?Hi there jphilyaw,
You may find the information in the article below helpful.
If you can't redeem your iTunes Gift Card or code
http://support.apple.com/kb/HT6021
-Griff W. -
Getting error: Before viewing PDF documents in this browser you must launch Adobe Reader and accept the End User License Agreement, then Quit and relaunch the browser. I just purchased and installed Adobe acrobat pro for the Mac today.
Hi Tbeirne,
If you just want to save a pdf opened in Safari to your machine use the save as option from within the Reader plugin window. Just click on any of the buttons highlighted in below screenshots to Save a pdf at any location on your machine.
or
To summarize the issue, if you had opened an Internet PDF in a browser plug-in, you must use the save feature in the plug-in, not the Safari File > PDF Export, or File > Save As...
Please let us know if this solution works for you and you are able to save and view PDFs files locally.
Regards,
Shashi -
Error Message Using DB.Execute on SQL Server - Must use dbSeeChanges
Uh, found a post indicating that dbFailOnError and dbSeeChanges are enumerated and that to designate them both, just add them together, but its not working and I'm still getting the ever popular 'You must use the dbSeeChanges option with OpenRecordset when
accessing a SQL Server table that has an IDENTITY column.'.
Public Function deleteTrailerActivityHeaderAndChildren(lngTrailerActivityHeaderId As Long)
On Error GoTo Err_deleteTrailerActivityHeaderAndChildren
Dim wrksp As DAO.Workspace
Dim db As DAO.Database
Dim strDeleteChild As String
Dim strDeleteParent As String
Dim strComment As String
Dim errLoop As Error
strDeleteChild = "DELETE * FROM tblTrailerUtilizationDetails WHERE lngTrailerActivityHeaderId = " & lngTrailerActivityHeaderId
strDeleteParent = "DELETE * FROM tblTrailerActivityHeaders WHERE lngTrailerActivityHeader = " & lngTrailerActivityHeaderId
Set wrksp = DBEngine.Workspaces(0)
Set db = CurrentDb
wrksp.BeginTrans
On Error GoTo Err_dbExecute
strComment = "Delete child records"
db.Execute strDeleteChild, dbFailOnError + dbSeeChanges
If DBEngine.Errors.Count = 0 Then
strComment = "Delete parent"
db.Execute strDeleteParent, dbFailOnError + dbSeeChanges
If DBEngine.Errors.Count = 0 Then
strComment = "Commit changes"
wrksp.CommitTrans
Else
strComment = "Rollback changes to tblTrailerActivityHeaders"
wrksp.Rollback
MsgBox "Record cannot be deleted. Unable to delete the Trailer Utilization Detail records.", vbCritical
End If
Else
strComment = "Rollback changes to tblTrailerUtilizationDetails"
wrksp.Rollback
MsgBox "Record cannot be deleted. Unable to delete the Trailer Utilization Detail records.", vbCritical
End If
Debug.Print DBEngine.Errors(0).Description
On Error GoTo Err_deleteTrailerActivityHeaderAndChildren
Set db = Nothing
Set wrksp = Nothing
Exit_deleteTrailerActivityHeaderAndChildren:
Exit Function
Err_deleteTrailerActivityHeaderAndChildren:
MsgBox getDefaultErrorMessage("Module - Manage TrailerUtilization Details", "deleteTrailerActivityHeaderAndChildren", Err.Number, Err.Description), vbCritical
Resume Exit_deleteTrailerActivityHeaderAndChildren
Err_dbExecute:
If DBEngine.Errors.Count > 0 Then
For Each errLoop In DBEngine.Errors
Debug.Print getDefaultErrorMessage("Module - ManageTrailerUtilizationDetails", "deleteTrailerActivityHeaderAndChildren.Err_dbExecute", errLoop.Number, , "(" & strComment & ") " &
errLoop.Description)
Next errLoop
End If
Resume Next
End Function
David HHi aychekay
Try following:
- Add a TimeStamp Datatype Column to the table on the SQL Server
- Rebind the tables into your database
- Try your code again
You never should run an Access Application against an SQL Server in readwrite mode without having TimeStamp datatype columns in your tables. Already for performance reasons this is a must and also, if you have datetime datatype fields on
the SQL Server that are not exclusively maintained by Access, as the SQL Server may add miliseconds when writing the data. Same for Single precision datatypes, that may be rounded until you get the result back from the server. If you have a Timestamp datatype
column in your table then Access is sure the record wasn't changed in the meantime and will not recheck the received record again against the database for changes in one of it's fields.
Henry
<aychekay> wrote in message
news:[email protected]...
This problem didn't go away yet. I'm having it too in Access 2007 (SP2 not installed yet) with a SQL Server 2008 Express backend. I'm sure my code is not reference any form controls or other object references. Access just complains if you try to run an Execute
with "DELETE" on a table that has an identity column. I've resorted to deleting using a DAO recordset and loop instead for now.
I actually started out using MySQL with MySQL's ODBC drivers and my statement worked fine. Only when I migrated to SQL Server did I start to have this problem.
Just sayin...
Maybe you are looking for
-
Delete Pages in Hyperion Report
I have a report that had several tables in it that I had to delete. Now I have all these blank pages after the tables I retained and cannot delete them. Can anyone help? Thanks!
-
Cannot install applications because the certificate is not valid
cannot install applications because the certificate is not valid error from my iphone when trying to install an application, running the latest update 7.1
-
Transitioning from an older G5 Pro to a new iMac. My Final Cut Express files are on a 2T WD external HD. When I try to load a project to the iMac I get a "General Error 41" and the files do not load. Took the WD the Apple Store and tried it on one of
-
Running Essbase 11.1.2 ASO cube...occassionally, when I attempt to kill a user session in EAS, I get the status of "terminating". I try to kill the session using Maxl commands to no avail. I know as a last resort to use task manager to end the ESSSVR
-
Hyperion Workspace Customized message
Hi Gurus, I have this query about if we can have some customized messages in Planning/workspace. Twice each day, we have a SPREAD job that runs during which time we would not like users to log in to workspace. We have a system where users get notific