Questions tagged [name-conflict]

A situation in which two or more identifiers within a given scope cannot be unambiguously resolved.

Programmers are expected to ensure that the identifiers of entities are unique in a given scope and not open to multiple interpretations. When this is not ensured, a name-conflict (or a name-collision) occurs.

Different compilers have different rules for resolving name conflict, which is captured by name-mangling (also known as name decoration).

47 questions
0
votes
2 answers

C# class name - method name collision

Say I have a class named 'Foo', with some static member, and in some other class (which is under the same namespace) there is a factory method with the same name, which uses this member: namespace MyNamespace { public class Foo { …
bavaza
  • 10,319
  • 10
  • 64
  • 103
0
votes
3 answers

Name conflicts in jar file

I have a directory /plugin with two jar in there A.jar and B.jar .Both has a file with same name, config.xml File file = new File("plugin/"); for (File item: file.listFiles()) { if (item.isFile() &&…
Dewsworld
  • 13,367
  • 23
  • 68
  • 104
0
votes
1 answer

Setting `cache_classes` to `false` fixes my bug. What to do next?

I'm adding a mountable engine to my rails app, which provides a forum-like functionality (i.e. adds questions, answers, comments, etc). Everything works fine in development. In staging/production, however, I get an error when trying to create an…
0
votes
1 answer

C++ redefinition of log - static vars conflicting with included globals

I'm porting some code from Swift to C++. I was doing the following at the top of every Swift file: private let log = os.Logger("Foo") This defines a log variable that is local to the file. It's like static in C and C++. If I try a similar thing in…
Rob N
  • 15,024
  • 17
  • 92
  • 165
0
votes
1 answer

Custom build script to avoid libraries name collisions?

When using Android libraries if more than one project (main or libraries) defines the same resource, the higher-priority project's copy gets used and replaces the previous one. This is a problem when writing a reusable library because it forces you…
MasterScrat
  • 7,090
  • 14
  • 48
  • 80
0
votes
1 answer

Conflicting user defined class name with inbuilt class name - C#

I have the following code, where I am using the inbuilt C# Stack class in my own user defined Stack1 class. Everything works well with this user defined nomenclature. But, as soon as I change all references of my user defined Stack1 class, and call…
Vikram Singh
  • 435
  • 2
  • 10
0
votes
1 answer

Symbol resolution when multiple versions of same library are used

I have a solaris shared object (common.so file) that runs as part of a third party application(app.exe). I do not have access to the source code of the application. To the so, I need to add a capability to post http requests. My plan is to use…
Bharath Gade
  • 153
  • 1
  • 10
0
votes
0 answers

Call to base member function template ambiguity in C++

I'm trying to implement a DependencyInjectable behavior, and classes that derive from this behavior are able to be injected with the appropriate dependencies upon instantiation. Below I've tried to extract and condense a sample of code from a much…
0
votes
0 answers

Different symbol tables in different versions of gcc causing wrong linkages

I am trying to compile a piece of code that links several source files with a shared library. This is to avoid a name conflict with a function named Log in both the source code and shared library. The signature in my source code is Log(int, char *,…
0
votes
1 answer

Doctrine 2 Model: How set table name with "-" in it?

How should I name a Doctrine 2 Model table row variable (e.g. url-name is the table row name) and I tried it with that: /** @Column(name="url-name", type="string") */ private $urlName; // or I tried also /** @Column(name="`url-name`",…
Poru
  • 8,254
  • 22
  • 65
  • 89
0
votes
1 answer

Grails Json Views "model" key conflicts with model keyword

I am using the rest-api profile for a Grails app and have the following in one of my json views (_event.gson): model { Event event } json g.render(event, [excludes: ['product']]) { product { id event.product.id name…
nbkhope
  • 7,360
  • 4
  • 40
  • 58
0
votes
1 answer

Rescale for NBA heatmap: dplyr equivalent to plyr function?

There is this great example of how to use ggplot2 to create a heat map the 'R; way: Rheatmap which provides a link to the raw data and the source code. There was a followup using ggplot2: ggplot2 which lays out the ggplot2 code. At key points the…
0
votes
2 answers

How to use two apps with same name?

I need to create two scopes on my page with an AngularJS app that has the same name. The reason is I'm using a Wordpress theme that doesn't allow adding to the body tag. And I can't create a high level div with angular attributes because the theme…
4thSpace
  • 43,672
  • 97
  • 296
  • 475
0
votes
1 answer

Possible conflict betwen jquery and jquery mobile versions when trying to use Tipue Search 4.0

I am trying to get search up and running on my website. Right now the search either does nothing or spinner endlessly spins and nothing loads or I get "ERROR LOADING PAGE." I feel that this may be due to a jquery and jquery mobile conflict.…
0
votes
2 answers

Name conflict between member function and class name

I'm writing a chess program with wxWidgets. At one point, I have a subclass of wxGLCanvas, and it makes use of a Move class I wrote. Unfortunately, it seems like there's a method wxWindowBase::Move(), and so all my statements of the form list
Henry Swanson
  • 186
  • 13