rai
New Member
Posts: 6
|
Post by rai on Jan 22, 2014 16:47:04 GMT -8
When trying to compile in Visual Studio 2013, I get an error on line 380: "error C4146: unary minus operator applied to unsigned type, result still unsigned". Googling the error code shows me that this is supposed to be a warning, but for some reason, this is an error instead. I've made sure that "Treat Warnings as Errors" has been disabled, and I've suppressed all warnings, yet this still keeps me from compiling under Visual Studio.
|
|
rai
New Member
Posts: 6
|
Post by rai on Jan 26, 2014 12:53:14 GMT -8
For clarification, here is the section of the code where the error occurs:
NEXT_OPCODE_SUBFUNCTION 0 // Unused on 8086 NEXT_OPCODE_SUBFUNCTION // NOT OP(=~) NEXT_OPCODE_SUBFUNCTION // NEG OP(=-), // <-- Error occurs here op_dest = 0, raw_opcode_id = 22, // Funge to set flags like SUB set_CF(op_result > op_dest)
|
|
|
Post by sebazzz on Jan 27, 2014 10:09:08 GMT -8
Try compiling without SDL and security checks.
|
|
rai
New Member
Posts: 6
|
Post by rai on Jan 27, 2014 15:57:54 GMT -8
Alright, turns out that security checks were causing the problem.
Without SDL, the program builds and starts up smoothly.
With SDL, however, more problems open up. While it compiles okay, it gives a linker error: "entry point must be defined." I tried setting the entry point to "main" (bad idea?) and while it now builds, I get the following error on startup. Not sure what it means. Maybe it's because of me setting the entry point manually?
|
|
|
Post by sebazzz on Jan 28, 2014 9:29:32 GMT -8
|
|
rai
New Member
Posts: 6
|
Post by rai on Jan 28, 2014 14:25:21 GMT -8
Unsetting the entry point and setting the subsystem to console seems to have fixed it. The program builds okay and starts up without crashing.
The subsystem was originally unset; I'm guessing that's because I created an empty project rather than a console project. Anyway, thanks for the help.
|
|
|
Post by Showanymn on Jan 17, 2019 14:48:44 GMT -8
In 2019 there are lot of movies coming out. Obviously, there are Avengers part 2, new Star Wars Episode IX and many others. These are movies that every person wants to see, but sometimes you can miss it.It is where applications come in handy you can watch a movies for free. Btw, looking for the best app to watch free movies on your Android phone? Then your should check Showbox app. This is the most famous app today that has a big library of shows and films. This app is also available for pc users. But your need to download it first to enjoy free movies <a href=http://showbox-all.com>Showbox app on PC</a>
|
|
|
Post by KimerWoula on Feb 4, 2019 9:43:37 GMT -8
Interested in hardrock? How about Kiss band? They are on a tour this 2019 year all across the US. Click on <a href=http://kisstourdates.com>KISS Concert 2019 Oklahoma City</a> to know more about KISS concert in 2019.
|
|