|
Here's yet another VC9 vs. GCC 4.2 compile error problem. The following code compiles fine with VC9 (Microsoft Visual C++ 2008 SP1) but not with GCC 4.2 on Mac:
struct C { template< typename T > static bool big() { return sizeof( T ) > 8; } }...
Started by jwfearn on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The answer was here with a little....
That should be
return X::template big< char >();
Dependent names from templates are taken to not be types unless you specify that they are via typename and assumed to not be templates unless specified via template .
|
|
I have the below code in stdafx.h.
using namespace std; typedef struct { DWORD address; DWORD size; char file[64]; DWORD line; } ALLOC_INFO; typedef list<ALLOC_INFO*> AllocList; //AllocList *allocList;
Without the commented code (last line), it ...
Started by RWendi on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You would be better off declaring the variable:
extern AllocList *allocList;
in your header http://www.flipcode.com/archives/How_To_Find_Memory_Leaks.shtml , I assume that all those code leaks in code that you don....
The link error.
|
|
I get the following error when building my Windows Forms solution:
'"LC.exe" exited with code -1'
I use 2 commercial Windows Forms Libraries: Infragistics and the Gantt-Control from plexityhide.com, that's why I have licenses.licx files in my WinForms...
Started by Stefan Haubold on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The solution is to reinstall information in the error message?
When I had problems with LC.exe in the past, most times.
We frequently encounter this error from our last project.
|
Ask your Facebook Friends
|
Hello,
I have this superclass:
import wx
class Plugin(wx.Panel): def __init__(self, parent, *args, **kwargs): wx.Panel.__init__(self, parent, *args, **kwargs) self.colorOver = ((89,89,89)) self.colorLeave = ((110,110,110)) self.SetBackgroundColour(self...
Started by aF on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Something you have to be within a method , not at class level outside of methods!... .
Make the subclass
class noisePlugin(plugin.Plugin): def __init__(self, *a, **k): plugin.Plugin.__init__(self, *a, **k) self.name = "noise"
Whenever you want to use self .
|
|
First let me say, I am not a coder but I help manage a coding team. No one on the team has more than about 5 years experience, and most of them have only worked for this company.. So we are flying a bit blind, hence the question.
We are trying to make...
Started by zerocl on
, 18 posts
by 18 people.
Answer Snippets (Read the full thread at stackoverflow):
The classic book on coding is Code Complete 2nd edition, by Steve Could be met easily (few changes from current condition) Should work toward in old code and follow is Large Scale C++ Software Design....
So YMMV, depending on your field.
|
|
I'm using jQuery for my app and I'm getting this error in IE:
Line: 13 Char: 9 Error: Expected Identifier, string or number Code: 0
..well, as you can see, the error isn't quite helpful. How do you fix those weird IE errors? Is there any tool or a list...
Started by Nimbuz on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
FWIW, the "Expected Identifier, string or number" error often occurs when you have
From there UNCHECK "Disable script....
Maybe the error is.
It has sane line numbering.
But try Mozilla's error console first.
Script debugger is quite OK.
|
|
I notice that I tend to fix one error, then recompile, then fix another one. SOmetimes if there are problems with many files I might fix one per file. How about you?
Started by BubbaT on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
I usually....
My IDE tells seems so last milennium.
If I can tell that a problem I fixI normally don't have errors when I compile; I compile because I want to run the code.
To cascade, so one error can lead to 100 other false positives.
|
|
Looking for concrete examples or links to concrete examples of such errors.
Thanks in advance.
Started by fung on
, 22 posts
by 22 people.
Answer Snippets (Read the full thread at stackoverflow):
This is the problem....
100% code coverage would imply that every line of code.
It's an estimate on how well you're test cases cover your source code base.
Code coverage doesn't mean that your code is bug free in any way.
|
|
Hey
Is there any way to fix the error that a JavaScript & causes in w3 validation? The problem is that i have to use && in a if statement and these two &&'s causes errors in w3 validation.
EDIT: Same problem with "<" and ">".
Started by Poku on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Elijah.
In that event, the script code needs to be HTML encoded.
In an HTML tag (such as onclick).
|
|
Does anyone have a site that teaches how to fix common compiler errors for newbies? Like does not name a type, etc?
Started by J.T on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
This goes line ....
They often give example code that causes the error, as well as how to fix it: C/C++ LNK2019') for that error code with common examples of what causes it and how it is fixed.
And warnings mean.
|