473,382 Members | 1,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Simple c++ program linker error

hi all,

Plz tell me what is wrong with this simple code. I am trying to make a
dll of this file.
######Employee.cpp######
#using <mscorlib.dll>
using namespace System;

namespace DotnetIntro {
__gc __interface Person {
String* getName();
};

__gc class Employee: public Person {
private:
String* name;
String* department;
public:
String* getName() {
return name;
}
String* getDepartment() {
return department;
}
};
}

I am trying to make dll using the following commands:
cl /clr /c Employee.cpp
link -dll /out:Employee.dll -noentry Employee.obj

Thanks for any help...

Jul 23 '05 #1
2 1372
if (question == Microsoft.related)
goto Microsoft.group;

Jul 23 '05 #2
On 4 Jun 2005 10:19:44 -0700, vi*****@gmail.com wrote in
comp.lang.c++:
hi all,

Plz tell me what is wrong with this simple code. I am trying to make a
dll of this file.
######Employee.cpp######
#using <mscorlib.dll>


This is not C++. Find a .dotnet newsgroup in the
news:microsoft.public.* family.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Ross A. Finlayson | last post by:
I'm trying to write some C code, but I want to use C++'s std::vector. Indeed, if the code is compiled as C++, I want the container to actually be std::vector, in this case of a collection of value...
1
by: endo55 | last post by:
Hi I've got the following errors when trying to compile a program cvision error LNK2001: unresolved external symbol _IID_IGraphBuilde cvision error LNK2001: unresolved external symbo...
2
by: Ney André de Mello Zunino | last post by:
Hello. I am having trouble building a simple project that uses one of the Standard C++ Library's IO facilities. The following is a stripped-down version that illustrates the problem: ...
29
by: tele-commuter | last post by:
Hi folks, I want to understand how exactly is an image(compiled c code and loaded into memory) stored in memory. What exactly is a linker script? I work with a lot of c code on a daily...
4
by: yogesh | last post by:
mysql in c++ initialize error occurs a simple program is executed in redhat9.0 , using gcc 3.2.2 compiler version ... #include <stdio.h> #include <mysql.h> #include <string.h> int main() {
12
by: Marko.Cain.23 | last post by:
Hi, i have a c++ program and I want to call a c function (some legacy code). So I have this in my Producer.c int initproducer() { printf (" init producer \n"); } And I want to call...
39
by: Ravi | last post by:
Can you all please suggest a program which tell us the range of memry addresses occupied by the given c program?
2
by: ...:::JA:::... | last post by:
Hi, I using "Dev-C++", yesterday I was install Microsoft Visual Studio .NET 2003 I need it for building python extensions.Since I was install it when I write some program in Dev-C++ for...
1
by: Deepath G | last post by:
This is deepath.. I am getting some linker error when i am trying to connect Websphere MQ using Borland C++ Builder 2006 using imqi.hpp on windows. Error Message ----------------------- ...
4
by: shailesh333 | last post by:
#include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <Winsock2.h> #include <stdlib.h> #define PORTNUM 2343 int main(int argc, char *argv)
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.